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

# List Categories

> Every category a search can filter on, with how many products carry it, largest first.

Requires the `search-branded-foods` scope.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/branded-foods/categories
openapi: 3.1.0
info:
  title: Orbbit Data API
  version: '1.0'
  description: >-
    Commodity prices, packaged-food labels, and online store catalogs over one
    read-only REST API.
servers:
  - url: https://api.orbbit.co
    description: Production
security:
  - bearer: []
tags:
  - name: Commodities
  - name: Branded Food
  - name: Shopify
paths:
  /v1/branded-foods/categories:
    get:
      tags:
        - Branded Food
      summary: List Categories
      description: >-
        Every category a search can filter on, with how many products carry it,
        largest first.


        Requires the `search-branded-foods` scope.
      operationId: BrandedFoodsController_categories
      parameters: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCategoriesResponseDto'
              example:
                data:
                  - category: Candy
                    product_count: 41210
                  - category: Cheese
                    product_count: 23874
        '401':
          description: The API key is missing, malformed, unknown, or revoked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiErrorDto'
              example:
                error:
                  type: unauthorized
                  message: 'Missing or malformed Authorization: Bearer header'
        '403':
          description: The key is valid but not scoped to this endpoint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiErrorDto'
              example:
                error:
                  type: forbidden
                  message: This key is not scoped to search-branded-foods
      security:
        - bearer: []
components:
  schemas:
    ListCategoriesResponseDto:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              category:
                type: string
              product_count:
                type: number
            required:
              - category
              - product_count
      required:
        - data
    PublicApiErrorDto:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            message:
              type: string
          required:
            - type
            - message
      required:
        - error
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: Your API key, which starts with `orbbit_data_`.

````