Vizit Public APIAPI
Benchmarks

List a benchmark's images

Page through a benchmark's images, optionally with their scores against it.

GET/v1/benchmarks/{benchmark_id}/images

Lists the visible images in a custom benchmark, sorted by sort_by and sort_direction with ties broken by image id. Page with limit and offset; the Vizit-Total-Count response header carries the number of images.

Send product_category_id to have each row carry pair_score: the image's score against this benchmark under that category, from the benchmark's latest scoring under it (Score a benchmark's images). Without it pair_score is null, and sort_by=pair_score answers 422 SORT_REQUIRES_PAIR. Unscored images sort last in both directions; informational images have vizit_score: null and scored: false and sort with them.

classification is null for an Other asset.

Authorization

bearerAuth
Authorization<token>

Short-lived access token issued by Create a token. Send it on every request as Authorization: Bearer <token>.

In: header

Path Parameters

benchmark_id*string

The id of a custom benchmark in your default workspace.

Formatuuid

Query Parameters

product_category_id?string

Score each image against this benchmark under this product category.

Formatuuid
sort_by?string

Field to sort by.

Default"created_at"
Value in"created_at" | "name" | "pair_score"
sort_direction?string

Sort direction.

Default"asc"
Value in"asc" | "desc"
limit?integer

Number of items to return.

Default10
Range1 <= value <= 100
offset?integer

Number of items to skip.

Default0
Range0 <= value

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://ext.vizit.com/v1/benchmarks/497f6eca-6276-4993-bfeb-53cbbbba6f08/images"
[  {    "image_id": "84c230fd-5520-4984-8119-37365b66fd80",    "name": "hero-front.jpg",    "image_url": "string",    "classification": "Lifestyle",    "pair_score": {      "benchmark_id": "f1254acf-0c77-40a6-91d2-a34bd4970fd9",      "retailer": "amazon",      "product_category_id": "8df7b127-d8ab-4b5d-a571-ee2b3ab38511",      "vizit_score": 0,      "scored": true,      "status": "PROCESSING"    }  }]
{  "detail": "string",  "status_code": 0,  "error_code": "IMAGE_DOWNLOAD_FAILED",  "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",  "extra": {    "failed_urls": [      {        "url": "https://cdn.example.com/broken.jpg",        "reason": "IMAGE_DOWNLOAD_TIMEOUT"      },      {        "url": "https://cdn.example.com/icon.svg",        "reason": "UNSUPPORTED_IMAGE_FORMAT"      }    ]  },  "timestamp": "2019-08-24T14:15:22Z"}
Empty
{  "detail": "string",  "status_code": 0,  "error_code": "IMAGE_DOWNLOAD_FAILED",  "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",  "extra": {    "failed_urls": [      {        "url": "https://cdn.example.com/broken.jpg",        "reason": "IMAGE_DOWNLOAD_TIMEOUT"      },      {        "url": "https://cdn.example.com/icon.svg",        "reason": "UNSUPPORTED_IMAGE_FORMAT"      }    ]  },  "timestamp": "2019-08-24T14:15:22Z"}
{  "detail": "string",  "status_code": 0,  "error_code": "IMAGE_DOWNLOAD_FAILED",  "request_id": "266ea41d-adf5-480b-af50-15b940c2b846",  "extra": {    "failed_urls": [      {        "url": "https://cdn.example.com/broken.jpg",        "reason": "IMAGE_DOWNLOAD_TIMEOUT"      },      {        "url": "https://cdn.example.com/icon.svg",        "reason": "UNSUPPORTED_IMAGE_FORMAT"      }    ]  },  "timestamp": "2019-08-24T14:15:22Z"}
Empty