> ## 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.

# One category

> One top-level category or subcategory: its market rank, GMV and units. A number we do not hold is null, with the reason in `nullReasons`. Do not read null as zero. US market only. The numbers are estimates for the whole TikTok Shop market, not your own shop's sales, and you do not need a connected TikTok Shop. Money is in US dollars. Rate limit: 2 seconds between calls, and 300 market calls per key per hour, counted apart from your other API calls.

Works with any organization key of an ecommerce brand or ecommerce agency. No connected TikTok Shop is needed. See [TikTok Shop market insights](https://docs.growi.io/essentials/tiktok-shop-market.md) for time ranges, paging and limits.

```bash theme={"dark"}
curl "https://api.growi.io/api/public/v1/tiktok_shop/market/categories/14" \
  -H "Authorization: Bearer growi-sk-YOUR-API-KEY"
```


## OpenAPI

````yaml GET /tiktok_shop/market/categories/{id}
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/market/categories/{id}:
    get:
      summary: One category
      description: >-
        One top-level category or subcategory: its market rank, GMV and units. A
        number we do not hold is null, with the reason in `nullReasons`. Do not
        read null as zero. US market only. The numbers are estimates for the
        whole TikTok Shop market, not your own shop's sales, and you do not need
        a connected TikTok Shop. Money is in US dollars. Rate limit: 2 seconds
        between calls, and 300 market calls per key per hour, counted apart from
        your other API calls.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The category's `id`, from GET /categories.
        - name: organization_id
          in: query
          required: false
          schema:
            type: integer
          description: >-
            Read as one of your brands (a child organization of the key's
            organization). The answer is the same market data; this only decides
            whose access and allowance are used. Leave out to read as the key's
            organization.
      responses:
        '200':
          description: OK
          content:
            application/json:
              examples:
                ok:
                  value:
                    region: US
                    id: '14'
                    name: Beauty & Personal Care
                    level: 1
                    rank: 1
                    rankedOf: 30
                    gmv: 300000000
                    gmvChange: 0.03
                    units: 648993
                    shopCount: null
                    avgGmvPerShop: null
                    activeProducts: null
                    marketWindow: month
                    statsWindow: last complete ISO week (2026-46)
                    statsWeek: 2026-46
                    nullReasons:
                      shopCount: not_tracked
                      avgGmvPerShop: not_tracked
                      activeProducts: not_tracked
                    dataAsOf: '2026-11-20T02:00:00.000Z'
                    statsDataAsOf: '2026-11-20T03:00:00.000Z'
                  summary: Example
              schema:
                type: object
                properties:
                  region:
                    type: string
                    description: Always US.
                  id:
                    type: string
                  name:
                    type: string
                  level:
                    type: integer
                  rank:
                    type: integer
                    description: >-
                      The row's place in the list across pages: (page - 1) x
                      page size + its position. On a category it is the
                      category's own place in the market, null outside the
                      ranking.
                  rankedOf:
                    type: integer
                    description: How many categories the ranking holds.
                  gmv:
                    type: integer
                    description: Sales in US dollars for the window.
                  gmvChange:
                    type: number
                    description: >-
                      Change against the period before, as a fraction (0.18 =
                      +18%).
                  units:
                    type: integer
                  shopCount:
                    nullable: true
                  avgGmvPerShop:
                    nullable: true
                  activeProducts:
                    nullable: true
                  marketWindow:
                    type: string
                    description: >-
                      The range of gmv, gmvChange and units on category rows:
                      the calendar month.
                  statsWindow:
                    type: string
                    description: The week the category's weekly numbers are for.
                  statsWeek:
                    type: string
                  nullReasons:
                    type: object
                    properties:
                      shopCount:
                        type: string
                      avgGmvPerShop:
                        type: string
                      activeProducts:
                        type: string
                    description: >-
                      For each field that is null, why. not_tracked: we do not
                      track this number. not_available: there is no value for
                      it. insufficient_history: not enough days of data for the
                      range. no_fixed_window: it cannot be added up over the
                      standard reporting period. collecting: it is being
                      collected now. lookup_limit_reached: it was never
                      collected and the hour's first-time lookups are used up.
                      Never read null as zero.
                  dataAsOf:
                    type: string
                    description: When the data was last refreshed.
                  statsDataAsOf:
                    type: string
        '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: >-
                              invalid_params, forbidden, not_found,
                              lookup_limit_reached, collecting,
                              data_unavailable, switched_off or internal_error
                          message:
                            type: string
                            description: What went wrong and what to do, 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'
                  success:
                    type: boolean
                    description: false, on an unknown organization_id only
              examples:
                not_authenticated:
                  value:
                    error: Not Authenticated
                  summary: Missing or invalid API key
        '403':
          description: >-
            Your organization can't use market insights. They are for ecommerce
            brands and ecommerce agencies; `error.message` says what to change
          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: >-
                              invalid_params, forbidden, not_found,
                              lookup_limit_reached, collecting,
                              data_unavailable, switched_off or internal_error
                          message:
                            type: string
                            description: What went wrong and what to do, 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'
                  success:
                    type: boolean
                    description: false, on an unknown organization_id only
              examples:
                forbidden:
                  value:
                    error:
                      code: forbidden
                      message: >-
                        TikTok Shop market insights are for ecommerce brands and
                        ecommerce agencies. You can change your organization
                        type in Settings, or contact support.
                  summary: >-
                    The organization is not an ecommerce brand or ecommerce
                    agency
        '404':
          description: >-
            No category with this id, or `organization_id` isn't an active child
            brand of your 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: >-
                              invalid_params, forbidden, not_found,
                              lookup_limit_reached, collecting,
                              data_unavailable, switched_off or internal_error
                          message:
                            type: string
                            description: What went wrong and what to do, 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'
                  success:
                    type: boolean
                    description: false, on an unknown organization_id only
              examples:
                organization_not_found:
                  value:
                    success: false
                    error: Organization not found
                  summary: organization_id is not one of your brands
                not_found:
                  value:
                    error:
                      code: not_found
                      message: >-
                        We have no category with this id. Use an id from the
                        categories list.
                  summary: No such shop, product or category
        '422':
          description: >-
            Invalid params. `error.code` is `invalid_params` and `error.message`
            names the param and its allowed values
          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: >-
                              invalid_params, forbidden, not_found,
                              lookup_limit_reached, collecting,
                              data_unavailable, switched_off or internal_error
                          message:
                            type: string
                            description: What went wrong and what to do, 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'
                  success:
                    type: boolean
                    description: false, on an unknown organization_id only
              examples:
                invalid_params:
                  value:
                    error:
                      code: invalid_params
                      message: 'window must be one of: 7d, 28d'
                  summary: A param that cannot be used
        '429':
          description: >-
            Rate limited: 2 seconds between calls and 300 market 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: >-
                              invalid_params, forbidden, not_found,
                              lookup_limit_reached, collecting,
                              data_unavailable, switched_off or internal_error
                          message:
                            type: string
                            description: What went wrong and what to do, 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'
                  success:
                    type: boolean
                    description: false, on an unknown organization_id only
              examples:
                interval:
                  value:
                    error: >-
                      Rate limit exceeded. Please wait 2 seconds between
                      requests.
                    retry_after: 2
                  summary: Less than 2 seconds since your last market call
                hourly:
                  value:
                    error: Hourly rate limit of 300 requests exceeded.
                    retry_after: 1800
                    reset_time: '2026-11-29T13:00:00Z'
                  summary: More than 300 market calls this hour
        '503':
          description: >-
            `data_unavailable`: market insights can't be read right now; retry
            shortly
          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: >-
                              invalid_params, forbidden, not_found,
                              lookup_limit_reached, collecting,
                              data_unavailable, switched_off or internal_error
                          message:
                            type: string
                            description: What went wrong and what to do, 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'
                  success:
                    type: boolean
                    description: false, on an unknown organization_id only
              examples:
                data_unavailable:
                  value:
                    error:
                      code: data_unavailable
                      message: >-
                        TikTok Shop market insights are unavailable right now.
                        Try again shortly.
                  summary: The data could not be read right now
                switched_off:
                  value:
                    error:
                      code: switched_off
                      message: >-
                        TikTok Shop market insights are temporarily switched
                        off. Try again later.
                  summary: Market insights are switched off for everyone for now
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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