Skip to main content
GET
/
api
/
v1
/
collections
/
{id}
.json
Get Collection
curl --request GET \
  --url https://api.launchmystore.io/api/v1/collections/{id}.json \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "id": "<string>",
    "title": "<string>",
    "handle": "<string>",
    "description": "<string>",
    "published": true,
    "published_at": "<string>",
    "sort_order": "<string>",
    "template_suffix": "<string>",
    "image": {},
    "products_count": 123,
    "products": [
      {}
    ],
    "rules": [
      {}
    ],
    "disjunctive": true,
    "seo": {},
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt

Use this file to discover all available pages before exploring further.

Get Collection

Returns a single collection by its ID.

Request

curl -X GET "https://api.launchmystore.io/api/v1/collections/col_abc123.json" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Path Parameters

id
string
required
The unique collection ID

Query Parameters

include_products
boolean
default:"false"
Include array of products in the collection
products_limit
integer
default:"50"
Number of products to include (max 250)

Response

success
boolean
Whether the request succeeded
data
object
Collection object

Example Response

{
  "success": true,
  "data": {
    "id": "col_abc123",
    "title": "Summer Collection",
    "handle": "summer-collection",
    "description": "<p>Our latest summer styles featuring lightweight fabrics and vibrant colors.</p>",
    "published": true,
    "published_at": "2024-03-01T10:00:00Z",
    "sort_order": "best-selling",
    "template_suffix": null,
    "image": {
      "id": "img_456",
      "src": "https://cdn.launchmystore.io/images/summer-banner.jpg",
      "alt": "Summer Collection",
      "width": 1200,
      "height": 600
    },
    "products_count": 24,
    "rules": [],
    "disjunctive": false,
    "seo": {
      "title": "Summer Collection | MyStore",
      "description": "Shop our summer collection"
    },
    "created_at": "2024-03-01T10:00:00Z",
    "updated_at": "2024-03-15T14:30:00Z"
  }
}

Error Codes

CodeDescription
UNAUTHORIZEDInvalid or missing access token
FORBIDDENApp doesn’t have read_products scope
NOT_FOUNDCollection with the specified ID does not exist