Docs
Endpoints · Catalogue

GET/v1/picture/o/{organisation}/p/{product}

A product's own picture, public, for a shop platform to copy.

What it does

The product's own picture (JPEG, PNG or WebP; never the drawing PrintWisp shows when a product has none), with no key: product pictures are public. GET /v1/products and GET /v1/catalogue give this address as each product's image (null when it has no picture), and PrintWisp's Shopify app hands it to Shopify as the product's media. A picture over 2400 px or 5 MB is sent as a 2400 px WebP copy. Cached for a day.

No key: it is public.

GET /v1/picture/o/{organisation}/p/{product}Copy
curl "https://printwisp.com/v1/picture/o/{organisation}/p/{product}" \
  -o file
<?php
file_put_contents('file', file_get_contents('https://printwisp.com/v1/picture/o/{organisation}/p/{product}'));
// Node
const r = await fetch('https://printwisp.com/v1/picture/o/{organisation}/p/{product}');
require('fs').writeFileSync('file', Buffer.from(await r.arrayBuffer()));
import requests

r = requests.get(
    "https://printwisp.com/v1/picture/o/{organisation}/p/{product}",
)
open("file", "wb").write(r.content)

Parameters

ParameterTypeDescription
organisation requiredstringThe organisation's id.
product requiredstringThe product's code.

Response

200 image/jpeg. The picture.

HTTP/1.1 200
Content-Type: image/jpeg

← Every routeQuickstart →