Video

Get Product Preview List

Changed on

Retrieve paginated list of product previews with filtering and sorting options. Previews are generated videos that help you choose the best style before final rendering.

get/v2/product_previews

Request

  • Base URL
    https://api.jogg.ai
  • URL
    https://api.jogg.ai/v2/product_previews
  • Auth
    API key in header x-api-key

Query parameters

pageinteger
page_sizeinteger
status3 | 4 | 5

Filter by status:

  • 3 - Processing
  • 4 - Success
  • 5 - Failed
sort_bystring
sort_order'asc' | 'desc'

Response

Success

codeinteger required

Business status code:

  • 0 - Success
  • 10104 - Record not found
  • 10105 - Invalid API key
  • 18020 - Insufficient credit
  • 18025 - No permission to call APIs
  • 40000 - Parameter error
  • 50000 - System error
msgstring required

Response message

Example response

{
  "msg": "Success",
  "data": {
    "previews": [
      {
        "id": "video_123",
        "title": "My Product Preview",
        "video_duration": 30.5,
        "video_url": "https://res.jogg.ai/video.mp4",
        "cover_url": "https://res.jogg.ai/cover.jpg",
        "status": "completed",
        "created_at": 1640995200
      }
    ],
    "total": 15,
    "page": 1,
    "page_size": 10
  }
}

Changes