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

# Search products

> Search sellable products using Meilisearch with Supabase fallback.



## OpenAPI

````yaml api-reference/v1/openapi.yaml get /v1/search/products
openapi: 3.1.0
info:
  title: Goods API
  version: 1.0.0
  description: >-
    API for Goods grocery operations - scanner app, admin dashboard, and
    customer features
  contact:
    name: Goods Team
    url: https://goods.app
servers:
  - url: http://localhost:3000
    description: Local development
  - url: https://dev.api.switchyard.run
    description: Development
  - url: https://api.switchyard.run
    description: Production
security: []
tags:
  - name: v1
    description: API v1 - unified domain-based endpoints
  - name: Scanner
    description: Scanner app endpoints for drivers and pickers
  - name: Sweeps
    description: Sweep management - retail store pickup operations
  - name: RFC Picks
    description: Ready-for-checkout picking operations
  - name: Inventory
    description: Inventory management and barcode lookup
  - name: Admin
    description: Admin dashboard endpoints
  - name: Orders
    description: Order management
  - name: Products
    description: Product catalog management
  - name: Notifications
    description: Push, email, SMS, and Slack notification management
paths:
  /v1/search/products:
    get:
      tags:
        - Search
      summary: Search products
      description: Search sellable products using Meilisearch with Supabase fallback.
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 200
            description: Search query
            example: organic apples
          required: true
          name: q
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 20
            description: Max items to return
            example: 20
          required: false
          name: limit
          in: query
        - schema:
            type: string
            description: Meilisearch filter string
            example: is_rfc_item = true
          required: false
          name: filter
          in: query
        - schema:
            type: string
            description: Meilisearch sort string
            example: demand_velocity:desc
          required: false
          name: sort
          in: query
      responses:
        '200':
          description: Product search results
          content:
            application/json:
              schema:
                type: object
                properties:
                  products:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        name:
                          type: string
                          nullable: true
                        brand:
                          type: string
                          nullable: true
                        image_url:
                          type: string
                          nullable: true
                        is_rfc_item:
                          type: boolean
                          nullable: true
                        is_active:
                          type: boolean
                          nullable: true
                        size:
                          type: string
                          nullable: true
                        category:
                          type: string
                          nullable: true
                        subcategory:
                          type: string
                          nullable: true
                        demand_velocity:
                          type: number
                          nullable: true
                        availability_score:
                          type: number
                          nullable: true
                      required:
                        - id
                        - name
                        - brand
                        - image_url
                        - is_rfc_item
                        - is_active
                        - size
                      description: Product search result
                  total:
                    type: number
                  source:
                    type: string
                    enum:
                      - meilisearch
                      - supabase
                required:
                  - products
                  - total
                  - source
                description: Product search response
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                required:
                  - error
                description: Error response

````