curl --request GET \
--url https://api.privy.com/v1/product_collections/{id}/products \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.privy.com/v1/product_collections/{id}/products"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.privy.com/v1/product_collections/{id}/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.privy.com/v1/product_collections/{id}/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.privy.com/v1/product_collections/{id}/products"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.privy.com/v1/product_collections/{id}/products")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.privy.com/v1/product_collections/{id}/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 7890123456789,
"title": "Classic T-Shirt",
"handle": "classic-t-shirt",
"status": "active",
"product_type": "Shirts",
"vendor": "Acme Apparel",
"url": "https://mystore.com/products/classic-t-shirt",
"image_url": "https://cdn.shopify.com/s/files/1/0001/products/tshirt.jpg",
"price_range": {
"min": "10.00",
"max": "15.00",
"currency_code": "USD"
},
"total_inventory": 42,
"tracks_inventory": true,
"variants_count": 2,
"variants": [
{
"id": 40012345678901,
"title": "Small",
"price": "10.00",
"compare_at_price": null,
"sku": "TSHIRT-S",
"inventory_quantity": 12,
"available": true
},
{
"id": 40012345678902,
"title": "Large",
"price": "15.00",
"compare_at_price": "20.00",
"sku": "TSHIRT-L",
"inventory_quantity": 30,
"available": true
}
],
"created_at": "2026-01-10T09:00:00Z",
"updated_at": "2026-06-01T09:00:00Z"
}
],
"pagination": {
"per_page": 25,
"total_count": 12,
"has_more": false,
"next_cursor": null
}
}{
"error": {
"code": "unauthorized",
"message": "Bearer token is missing or invalid"
}
}{
"error": {
"code": "insufficient_scope",
"message": "Token does not have the required scope"
}
}{
"error": {
"code": "not_found",
"message": "Not found"
}
}{
"error": {
"code": "validation_failed",
"message": "One or more fields are invalid",
"details": [
{
"field": "email",
"message": "is required"
}
]
}
}{
"error": {
"code": "store_rate_limited",
"message": "The connected store is rate limiting requests. Try again shortly."
}
}{
"error": {
"code": "store_unavailable",
"message": "The connected store could not be reached. Try again shortly."
}
}List a collection's products
Retrieve the products in one collection (Shopify) or category (BigCommerce) of your
connected store, in the same shape as /v1/products.
Uses the same cursor pagination as /v1/products. total_count is null on
Shopify stores when the collection holds more products than Shopify will count exactly.
The title and handle filters of /v1/products are not available here and return
422 validation_failed.
Requires a connected Shopify or BigCommerce store — without one, this endpoint returns
404 no_connected_store.
Required scope: products_read
curl --request GET \
--url https://api.privy.com/v1/product_collections/{id}/products \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.privy.com/v1/product_collections/{id}/products"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.privy.com/v1/product_collections/{id}/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.privy.com/v1/product_collections/{id}/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.privy.com/v1/product_collections/{id}/products"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.privy.com/v1/product_collections/{id}/products")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.privy.com/v1/product_collections/{id}/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 7890123456789,
"title": "Classic T-Shirt",
"handle": "classic-t-shirt",
"status": "active",
"product_type": "Shirts",
"vendor": "Acme Apparel",
"url": "https://mystore.com/products/classic-t-shirt",
"image_url": "https://cdn.shopify.com/s/files/1/0001/products/tshirt.jpg",
"price_range": {
"min": "10.00",
"max": "15.00",
"currency_code": "USD"
},
"total_inventory": 42,
"tracks_inventory": true,
"variants_count": 2,
"variants": [
{
"id": 40012345678901,
"title": "Small",
"price": "10.00",
"compare_at_price": null,
"sku": "TSHIRT-S",
"inventory_quantity": 12,
"available": true
},
{
"id": 40012345678902,
"title": "Large",
"price": "15.00",
"compare_at_price": "20.00",
"sku": "TSHIRT-L",
"inventory_quantity": 30,
"available": true
}
],
"created_at": "2026-01-10T09:00:00Z",
"updated_at": "2026-06-01T09:00:00Z"
}
],
"pagination": {
"per_page": 25,
"total_count": 12,
"has_more": false,
"next_cursor": null
}
}{
"error": {
"code": "unauthorized",
"message": "Bearer token is missing or invalid"
}
}{
"error": {
"code": "insufficient_scope",
"message": "Token does not have the required scope"
}
}{
"error": {
"code": "not_found",
"message": "Not found"
}
}{
"error": {
"code": "validation_failed",
"message": "One or more fields are invalid",
"details": [
{
"field": "email",
"message": "is required"
}
]
}
}{
"error": {
"code": "store_rate_limited",
"message": "The connected store is rate limiting requests. Try again shortly."
}
}{
"error": {
"code": "store_unavailable",
"message": "The connected store could not be reached. Try again shortly."
}
}Authorizations
Send either an API token or an OAuth access token as
Authorization: Bearer <token>. See the Authentication page for details.
Headers
Target a subaccount instead of the main connected account.
Pass a subaccount id from get_account's subaccounts list. Only direct subaccounts
of the connected account are reachable — omit this for the main account itself.
Path Parameters
The store's collection id (returned as id in collection responses).
Query Parameters
Number of results per page, clamped to 1–50.
1 <= x <= 50Opaque pagination cursor from a previous response's pagination.next_cursor.
Was this page helpful?