API reference Products
Get a product
Returns one product and the creatives linked to it, best sellers first.
GET
/api/v1/public/products/{product}Scope: read. The key's creator needs access to Products. Money fields in each creative's performance need read:money.
Creatives are the 25 most recent Library assets linked to the product, then sorted by all-time revenue (or spend, then impressions, when money is hidden).
Path parameters
productstringpathrequiredThe product's UUID, or its Shopify handle.
Response
idstringProduct UUID.
titlestringTitle.
handlestringShopify handle.
urlstringApp path of the product.
vendorstring | nullVendor.
product_typestring | nullProduct type.
disabledbooleanWhether someone disabled the product in Pipory (hidden from the default catalog and the product picker).
creative_countintegerCreatives returned.
creativesarrayLinked creatives, best first.
creatives[].idstringAsset UUID.
creatives[].namestringAsset name.
creatives[].urlstringApp path of the asset.
creatives[].media_typestringimage, video or audio.creatives[].tagsarrayTags.
creatives[].hookstring | nullHook.
creatives[].anglestring | nullAngle.
creatives[].stylestring | nullStyle.
creatives[].performance_all_timeobject | nullimpressions, clicks, ctr, and with the Money scope spend, purchases, revenue, roas. null when no linked ad delivered.revenue_visiblebooleanWhether money fields are included.
Example request
curl https://api.pipory.com/api/v1/public/products/classic-steel \
-H "Authorization: Bearer pip_your_key"
Example response
{
"id": "3d9a7b1c-2e4f-4a6b-8c0d-1e2f3a4b5c6d",
"title": "Classic Steel",
"handle": "classic-steel",
"url": "/products/classic-steel",
"vendor": "Acme Watches",
"product_type": "Watch",
"disabled": false,
"creative_count": 1,
"creatives": [
{
"id": "8f2c4a1e-6b3d-4c9f-a2e1-7d5b3c1a9e8f",
"name": "UGC hook v3",
"url": "/library/8f2c4a1e-6b3d-4c9f-a2e1-7d5b3c1a9e8f",
"media_type": "video",
"tags": ["ugc"],
"hook": "I stopped hitting snooze",
"angle": "Problem solution",
"style": "UGC",
"performance_all_time": { "impressions": 48210, "clicks": 1290, "ctr": 0.0268 }
}
],
"revenue_visible": false
}
Errors
| Status | Code | Meaning |
|---|---|---|
401 | invalid_api_key | Missing, unknown, revoked or expired key |
403 | insufficient_scope | The key or its creator's role cannot read Products |
403 | upgrade_required | The workspace is not on a paid plan |
404 | none | No product with that id or handle in this workspace |
429 | rate_limited | Over the key's rate limit |