Retrieve collections from a specific vendor with pagination. Collections are ordered by product count (highest first) to prioritize the most comprehensive collections.
Request
Your API key for authentication
The vendor/brand name to filter by
Page number for pagination (minimum: 1)
Number of collections per page (minimum: 1, maximum: 100, default: 10)
Response
Array of collection objects Unique identifier for the collection
Total number of products in this collection
ISO 8601 timestamp when the collection was last updated
Pagination metadata Total number of collections matching the query
Total number of pages available
Error Responses
Error message describing what went wrong
Additional details about the error
curl -X POST https://api.getcatalog.ai/v1/collections \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"vendor": "skims.com",
"page": 1,
"page_size": 20
}'
{
"collections" : [
{
"id" : "clx789def012" ,
"url" : "https://skims.com/collections/basics" ,
"products_total" : 145 ,
"last_updated_by_catalog" : "2024-01-20T18:45:00Z"
},
{
"id" : "clx890ghi345" ,
"url" : "https://skims.com/collections/loungewear" ,
"products_total" : 89 ,
"last_updated_by_catalog" : "2024-01-19T12:30:00Z"
}
],
"meta" : {
"total_items" : 25 ,
"total_pages" : 2 ,
"current_page" : 1 ,
"page_size" : 20
}
}