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

# Posts

> Posts with sales (`tab=with_sales`) or posts with no sales (`tab=no_sales`). Rows carry the products, brand, GMV, commission, orders, views, likes, comments, shares and saves, and `post_kind` (`video`, `slideshow`, `live`, `other`, or `null` before the post was scraped).

Works with organization keys and creator keys. See [Creator TikTok Shop analytics](https://docs.growi.io/essentials/creator-tiktok-shop-analytics.md) for which accounts each key reads.

```bash theme={"dark"}
curl "https://api.growi.io/api/public/v1/tiktok_shop/creator_analytics/posts?user_id=900000001&tab=with_sales&sort=gmv&from=2026-10-01&to=2026-11-24" \
  -H "Authorization: Bearer growi-sk-YOUR-API-KEY"
```


## OpenAPI

````yaml GET /tiktok_shop/creator_analytics/posts
openapi: 3.0.1
info:
  title: Growi API
  description: >-
    API documentation for Growi platform, showcasing the public tracking event
    endpoint
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.growi.io/api/public/v1
security:
  - bearerAuth: []
paths:
  /tiktok_shop/creator_analytics/posts:
    get:
      summary: Posts
      description: >-
        Posts with sales (`tab=with_sales`) or posts with no sales
        (`tab=no_sales`). Rows carry the products, brand, GMV, commission,
        orders, views, likes, comments, shares and saves, and `post_kind`
        (`video`, `slideshow`, `live`, `other`, or `null` before the post was
        scraped).
      parameters:
        - name: tab
          in: query
          required: false
          description: Which posts. Default with_sales.
          schema:
            type: string
            enum:
              - with_sales
              - no_sales
        - name: sort
          in: query
          required: false
          description: Sort by.
          schema:
            type: string
            enum:
              - gmv
              - commission
              - orders
              - views
              - posted_at
        - name: brand
          in: query
          required: false
          description: Only posts that sold this brand.
          schema:
            type: string
        - name: product_id
          in: query
          required: false
          description: Only posts that sold this product.
          schema:
            type: string
        - name: user_id
          in: query
          required: false
          description: >-
            One creator. With an organization key: that creator's accounts that
            are shared with you; a creator with none answers 404. With a creator
            key: optional, and only your own user id. Leave it out for every
            account the key can read
          schema:
            type: integer
        - name: account_ids
          in: query
          required: false
          description: >-
            Comma-separated account ids from `GET
            /tiktok_shop/creator_analytics/accounts`, at most 1,000. Narrows the
            selection; any id the key can't read answers 404
          schema:
            type: string
        - name: q
          in: query
          required: false
          description: >-
            Organization keys only, without `user_id`: keep the creators whose
            name, email or @handle contains this. A creator key gets 422
          schema:
            type: string
        - name: exclude_account_ids
          in: query
          required: false
          description: >-
            Organization keys only, without `user_id`: every selected account
            except these. A creator key gets 422
          schema:
            type: string
        - name: organization_id
          in: query
          required: false
          description: >-
            Leave it out. Creators share with your main organization, so a child
            brand answers 403. A creator key gets 422
          schema:
            type: integer
        - name: from
          in: query
          required: false
          description: 'First day, YYYY-MM-DD. Default: the first day of the month.'
          schema:
            type: string
            format: date
        - name: to
          in: query
          required: false
          description: >-
            Last day, YYYY-MM-DD, inclusive. Default: today. At most 3,660 days
            in all.
          schema:
            type: string
            format: date
        - name: tz
          in: query
          required: false
          description: IANA time zone the days are counted in. Default UTC.
          schema:
            type: string
        - name: include_pending
          in: query
          required: false
          description: Count orders that have not settled yet. Default true.
          schema:
            type: boolean
        - name: page
          in: query
          required: false
          description: Page, from 1. Default 1.
          schema:
            type: integer
        - name: per_page
          in: query
          required: false
          description: Rows per page, 1-100. Default 50.
          schema:
            type: integer
        - name: dir
          in: query
          required: false
          description: Sort direction.
          schema:
            type: string
            enum:
              - asc
              - desc
      responses:
        '200':
          description: OK
          content:
            application/json:
              examples:
                ok:
                  value:
                    posts:
                      - content_id: '7590000000000000001'
                        account_id: 900001
                        content_type: VIDEO
                        post_kind: video
                        url: >-
                          https://www.tiktok.com/@janedoe/video/7590000000000000001
                        caption: my everyday lip oil 💋
                        thumbnail_url: >-
                          https://tos.growi.io/creator-post-media/tik_tok-7590000000000000001-cover.jpg
                        posted_at: '2026-11-01T18:30:00Z'
                        product:
                          id: '1731234567890123456'
                          name: Hydrating Lip Oil
                          brand: Glow Lab
                          image_url: https://p16-oec-va.ibyteimg.com/example/lip-oil.jpg
                        products_count: 1
                        gmv_minor: 184500
                        commission_minor: 27675
                        organic_commission_minor: 22140
                        shop_ads_commission_minor: 5535
                        orders: 61
                        units: 63
                        shop_ads_commission_rate_bps: 500
                        refund_rate: 0.016
                        first_sale_at: '2026-11-01T19:02:00Z'
                        views: 412300
                        likes: 18204
                        comments: 311
                        shares: 902
                        saves: 1544
                        stats_available: true
                        stats_since: '2026-11-01'
                    total: 9
                    page: 1
                    per_page: 50
                    currency: USD
                  summary: tab=with_sales
                no_sales:
                  value:
                    posts:
                      - content_id: '7590000000000000002'
                        account_id: 900001
                        content_type: VIDEO
                        post_kind: slideshow
                        url: >-
                          https://www.tiktok.com/@janedoe/video/7590000000000000002
                        caption: fall lip combos
                        thumbnail_url: >-
                          https://tos.growi.io/creator-post-media/tik_tok-7590000000000000002-cover.jpg
                        posted_at: '2026-11-02T15:10:00Z'
                        product:
                          id: '1731234567890123456'
                          name: Hydrating Lip Oil
                          brand: Glow Lab
                          image_url: https://p16-oec-va.ibyteimg.com/example/lip-oil.jpg
                        products_count: 1
                        gmv_minor: 0
                        commission_minor: 0
                        organic_commission_minor: 0
                        shop_ads_commission_minor: 0
                        orders: 0
                        units: 0
                        shop_ads_commission_rate_bps: 0
                        refund_rate: 0
                        first_sale_at: null
                        views: 23810
                        likes: 1120
                        comments: 18
                        shares: 40
                        saves: 97
                        stats_available: true
                        stats_since: '2026-11-02'
                    total: 1
                    page: 1
                    per_page: 50
                    currency: USD
                  summary: tab=no_sales
              schema:
                type: object
                properties:
                  posts:
                    type: array
                    items:
                      type: object
                      properties:
                        content_id:
                          type: string
                          description: TikTok video or LIVE id
                        account_id:
                          type: integer
                          description: >-
                            Growi id of the TikTok Shop account (use it in
                            account_ids)
                        content_type:
                          type: string
                          description: >-
                            VIDEO, LIVE, PRE_LIVE (before a LIVE starts), SHOP
                            (showcase or shop page), PROMOTION_PAGE, LINKSHARE
                            or UNSPECIFIED (TikTok did not say)
                        post_kind:
                          type: string
                          description: >-
                            video, slideshow, live or other; null when the post
                            is not fetched yet
                          nullable: true
                        url:
                          type: string
                          description: >-
                            The post on TikTok; null for a LIVE, or when the
                            account has no @handle
                          nullable: true
                        caption:
                          type: string
                          description: Caption
                          nullable: true
                        thumbnail_url:
                          type: string
                          description: Cover image
                          nullable: true
                        posted_at:
                          type: string
                          description: When it was posted
                          nullable: true
                        product:
                          type: object
                          properties:
                            id:
                              type: string
                              description: Growi id of the account
                            name:
                              type: string
                              description: Name
                              nullable: true
                            brand:
                              type: string
                              description: The shop that sells it
                              nullable: true
                            image_url:
                              type: string
                              description: Product image
                              nullable: true
                          description: The product
                          nullable: true
                        products_count:
                          type: integer
                          description: Products it sold or tagged
                        gmv_minor:
                          type: integer
                          description: >-
                            GMV, in minor units: cents for USD and other
                            2-decimal currencies, whole units for IDR, VND, JPY
                            and KRW
                        commission_minor:
                          type: integer
                          description: >-
                            Commission (estimated until settled), in minor
                            units: cents for USD and other 2-decimal currencies,
                            whole units for IDR, VND, JPY and KRW
                        organic_commission_minor:
                          type: integer
                          description: >-
                            Commission from organic sales, in minor units: cents
                            for USD and other 2-decimal currencies, whole units
                            for IDR, VND, JPY and KRW
                        shop_ads_commission_minor:
                          type: integer
                          description: >-
                            Commission from Shop Ads sales, in minor units:
                            cents for USD and other 2-decimal currencies, whole
                            units for IDR, VND, JPY and KRW
                        orders:
                          type: integer
                          description: Orders
                        units:
                          type: integer
                          description: Units sold
                        shop_ads_commission_rate_bps:
                          type: integer
                          description: Shop Ads commission rate, in basis points
                        refund_rate:
                          type: number
                          description: Share of units refunded, 0 to 1
                        first_sale_at:
                          type: string
                          description: First sale in the range
                          nullable: true
                        views:
                          type: integer
                          description: Views (null when unknown)
                          nullable: true
                        likes:
                          type: integer
                          description: Likes
                          nullable: true
                        comments:
                          type: integer
                          description: Comments
                          nullable: true
                        shares:
                          type: integer
                          description: Shares
                          nullable: true
                        saves:
                          type: integer
                          description: Saves
                          nullable: true
                        stats_available:
                          type: boolean
                          description: Whether views and engagement are known
                        stats_since:
                          type: string
                          description: First day the stats cover
                          nullable: true
                      description: Posts
                    description: Posts
                  total:
                    type: integer
                    description: Rows across all pages
                  page:
                    type: integer
                    description: This page, from 1
                  per_page:
                    type: integer
                    description: Rows per page
                  currency:
                    type: string
                    description: >-
                      ISO currency of the money fields (null when there are no
                      sales in the range)
                    nullable: true
                  currency_mixed:
                    type: boolean
                    description: >-
                      Present, and true, only when the accounts sell in more
                      than one currency; the numbers count the main one
        '401':
          description: >-
            Missing, invalid or revoked API key: `{"error": "Not
            Authenticated"}`
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    description: >-
                      A message (authentication and rate limits) or { code,
                      message }
                    oneOf:
                      - type: string
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              forbidden, not_found, invalid_params,
                              export_in_progress, data_unavailable or
                              internal_error
                          message:
                            type: string
                            description: What went wrong, in plain words
                  retry_after:
                    type: integer
                    description: 'Rate limits only: seconds to wait'
                  reset_time:
                    type: string
                    description: 'Hourly limit only: when the hour resets'
              examples:
                missing_key:
                  value:
                    error: Not Authenticated
                  summary: Missing, invalid or revoked key
        '403':
          description: >-
            `organization_id` names a child brand. Creators share with your main
            organization
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    description: >-
                      A message (authentication and rate limits) or { code,
                      message }
                    oneOf:
                      - type: string
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              forbidden, not_found, invalid_params,
                              export_in_progress, data_unavailable or
                              internal_error
                          message:
                            type: string
                            description: What went wrong, in plain words
                  retry_after:
                    type: integer
                    description: 'Rate limits only: seconds to wait'
                  reset_time:
                    type: string
                    description: 'Hourly limit only: when the hour resets'
              examples:
                child_brand:
                  value:
                    error:
                      code: forbidden
                      message: >-
                        Creator TikTok Shop data is read with the main
                        organization, not a child brand. Leave out
                        organization_id.
                  summary: organization_id names a child brand
        '404':
          description: A creator, account, post or product this key can't read
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    description: >-
                      A message (authentication and rate limits) or { code,
                      message }
                    oneOf:
                      - type: string
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              forbidden, not_found, invalid_params,
                              export_in_progress, data_unavailable or
                              internal_error
                          message:
                            type: string
                            description: What went wrong, in plain words
                  retry_after:
                    type: integer
                    description: 'Rate limits only: seconds to wait'
                  reset_time:
                    type: string
                    description: 'Hourly limit only: when the hour resets'
              examples:
                not_found:
                  value:
                    error:
                      code: not_found
                      message: Not found.
                  summary: Not readable with this key
        '422':
          description: >-
            Invalid params. `error.code` is `invalid_params` and `error.message`
            says which
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    description: >-
                      A message (authentication and rate limits) or { code,
                      message }
                    oneOf:
                      - type: string
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              forbidden, not_found, invalid_params,
                              export_in_progress, data_unavailable or
                              internal_error
                          message:
                            type: string
                            description: What went wrong, in plain words
                  retry_after:
                    type: integer
                    description: 'Rate limits only: seconds to wait'
                  reset_time:
                    type: string
                    description: 'Hourly limit only: when the hour resets'
              examples:
                invalid_params:
                  value:
                    error:
                      code: invalid_params
                      message: user_id must be a user id
                  summary: A param that cannot be used
        '429':
          description: >-
            Rate limited: 2 seconds between calls and 1,000 creator analytics
            calls per key per hour. See `Retry-After` and the `X-RateLimit-*`
            headers
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    description: >-
                      A message (authentication and rate limits) or { code,
                      message }
                    oneOf:
                      - type: string
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              forbidden, not_found, invalid_params,
                              export_in_progress, data_unavailable or
                              internal_error
                          message:
                            type: string
                            description: What went wrong, in plain words
                  retry_after:
                    type: integer
                    description: 'Rate limits only: seconds to wait'
                  reset_time:
                    type: string
                    description: 'Hourly limit only: when the hour resets'
              examples:
                interval:
                  value:
                    error: >-
                      Rate limit exceeded. Please wait 2 seconds between
                      requests.
                    retry_after: 2
                  summary: Less than 2 seconds since the last call
                hourly:
                  value:
                    error: Hourly rate limit of 1000 requests exceeded.
                    retry_after: 107
                    reset_time: '2026-11-03T23:00:00Z'
                  summary: Hourly limit reached
        '503':
          description: TikTok Shop data is unavailable right now; try again shortly
          content:
            application/json:
              examples:
                data_unavailable:
                  value:
                    error:
                      code: data_unavailable
                      message: >-
                        TikTok Shop data is unavailable right now. Try again
                        shortly.
                  summary: TikTok Shop data unavailable for a moment
              schema:
                type: object
                properties:
                  error:
                    description: >-
                      A message (authentication and rate limits) or { code,
                      message }
                    oneOf:
                      - type: string
                      - type: object
                        properties:
                          code:
                            type: string
                            description: >-
                              forbidden, not_found, invalid_params,
                              export_in_progress, data_unavailable or
                              internal_error
                          message:
                            type: string
                            description: What went wrong, in plain words
                  retry_after:
                    type: integer
                    description: 'Rate limits only: seconds to wait'
                  reset_time:
                    type: string
                    description: 'Hourly limit only: when the hour resets'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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