# Get Products by Collection

**GET** `/shopify/{{SHOPIFY_API_VERSION}}/collections-products`

Product: [Connectors](https://devdocs.1spoc.com/docs/shopify.md)  
Version: [1.0](https://devdocs.1spoc.com/docs/shopify/1-0.md)  
Category: **2. Shopify APIs**  
Lifecycle: **active**

## Request overview

Full URL: `https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/collections-products`

Method: `GET`

Content type: `No request body`

## Authentication

This endpoint does not require authentication.

## Parameters

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `{SHOPIFY_API_VERSION` | string | Yes | Path value for {SHOPIFY_API_VERSION. |

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | string | No | Request value for limit. |
| `org_id` | string | No | Request value for org id. |
| `status` | string | No | active/draft/unlisted |
| `shop_domain` | string | No | Request value for shop domain. |
| `collection_id` | string | No | Request value for collection id. |
| `published_status` | string | No | published/unpublished |
| `previous_page_info` | string | No | MAX=250 |

### Request body fields

None.

## Request schema


```json
{
  "type": "object",
  "required": [
    "{SHOPIFY_API_VERSION"
  ],
  "properties": {
    "limit": {
      "type": "string",
      "x-parameter-in": "query"
    },
    "org_id": {
      "type": "string",
      "x-parameter-in": "query"
    },
    "status": {
      "type": "string",
      "description": "active/draft/unlisted",
      "x-parameter-in": "query"
    },
    "shop_domain": {
      "type": "string",
      "x-parameter-in": "query"
    },
    "collection_id": {
      "type": "string",
      "x-parameter-in": "query"
    },
    "published_status": {
      "type": "string",
      "description": "published/unpublished",
      "x-parameter-in": "query"
    },
    "previous_page_info": {
      "type": "string",
      "description": "MAX=250",
      "x-parameter-in": "query"
    },
    "{SHOPIFY_API_VERSION": {
      "type": "string",
      "description": "Path value for {SHOPIFY_API_VERSION."
    }
  }
}
```

## Request example


```json
{
  "limit": "1",
  "org_id": "0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2",
  "status": "active",
  "shop_domain": "pinnacle-store-2372.myshopify.com",
  "collection_id": "314223165555",
  "published_status": "published",
  "previous_page_info": "eyJsYXN0X2lkIjo4MTk2NTM2Nzk1MjUxLCJsYXN0X3ZhbHVlIjoiMCJ9"
}
```

## Response schema


```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "tags": {
            "type": "string"
          },
          "image": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer"
              },
              "alt": {
                "type": [
                  "null"
                ]
              },
              "src": {
                "type": "string"
              },
              "width": {
                "type": "integer"
              },
              "height": {
                "type": "integer"
              },
              "position": {
                "type": "integer"
              },
              "created_at": {
                "type": "string"
              },
              "product_id": {
                "type": "integer"
              },
              "updated_at": {
                "type": "string"
              },
              "variant_ids": {
                "type": "array",
                "items": {}
              },
              "admin_graphql_api_id": {
                "type": "string"
              }
            }
          },
          "title": {
            "type": "string"
          },
          "handle": {
            "type": "string"
          },
          "images": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "alt": {
                  "type": [
                    "null"
                  ]
                },
                "src": {
                  "type": "string"
                },
                "width": {
                  "type": "integer"
                },
                "height": {
                  "type": "integer"
                },
                "position": {
                  "type": "integer"
                },
                "created_at": {
                  "type": "string"
                },
                "product_id": {
                  "type": "integer"
                },
                "updated_at": {
                  "type": "string"
                },
                "variant_ids": {
                  "type": "array",
                  "items": {}
                },
                "admin_graphql_api_id": {
                  "type": "string"
                }
              }
            }
          },
          "status": {
            "type": "string"
          },
          "vendor": {
            "type": "string"
          },
          "options": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "name": {
                  "type": "string"
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "position": {
                  "type": "integer"
                },
                "product_id": {
                  "type": "integer"
                }
              }
            }
          },
          "variants": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "sku": {
                  "type": [
                    "null"
                  ]
                },
                "grams": {
                  "type": "integer"
                },
                "price": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "weight": {
                  "type": "integer"
                },
                "barcode": {
                  "type": "string"
                },
                "option1": {
                  "type": "string"
                },
                "option2": {
                  "type": [
                    "null"
                  ]
                },
                "option3": {
                  "type": [
                    "null"
                  ]
                },
                "taxable": {
                  "type": "boolean"
                },
                "image_id": {
                  "type": [
                    "null"
                  ]
                },
                "position": {
                  "type": "integer"
                },
                "created_at": {
                  "type": "string"
                },
                "product_id": {
                  "type": "integer"
                },
                "updated_at": {
                  "type": "string"
                },
                "weight_unit": {
                  "type": "string"
                },
                "compare_at_price": {
                  "type": [
                    "null"
                  ]
                },
                "inventory_policy": {
                  "type": "string"
                },
                "inventory_item_id": {
                  "type": [
                    "null"
                  ]
                },
                "requires_shipping": {
                  "type": "boolean"
                },
                "inventory_quantity": {
                  "type": "integer"
                },
                "fulfillment_service": {
                  "type": "string"
                },
                "admin_graphql_api_id": {
                  "type": "string"
                },
                "inventory_management": {
                  "type": "string"
                },
                "old_inventory_quantity": {
                  "type": "integer"
                }
              }
            }
          },
          "body_html": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "product_type": {
            "type": "string"
          },
          "published_at": {
            "type": "string"
          },
          "published_scope": {
            "type": "string"
          },
          "template_suffix": {
            "type": [
              "null"
            ]
          },
          "admin_graphql_api_id": {
            "type": "string"
          }
        }
      }
    },
    "currency": {
      "type": [
        "null"
      ]
    },
    "isLastPage": {
      "type": "boolean"
    },
    "totalCount": {
      "type": "integer"
    },
    "isFirstPage": {
      "type": "boolean"
    },
    "nextPageInfo": {
      "type": [
        "null"
      ]
    },
    "previousPageInfo": {
      "type": [
        "null"
      ]
    }
  }
}
```

## Response examples


```json
{
  "200": {
    "data": [
      {
        "id": 8196537155699,
        "tags": "",
        "image": {
          "id": 30910469374067,
          "alt": null,
          "src": "https://cdn.shopify.com/s/files/1/0686/6557/3491/files/images_9533e6af-7d8b-4964-b673-9947617812ec.jpg?v=1770982555",
          "width": 217,
          "height": 232,
          "position": 1,
          "created_at": "2026-02-13T11:36:14Z",
          "product_id": 8196537155699,
          "updated_at": "2026-02-13T11:42:35Z",
          "variant_ids": [],
          "admin_graphql_api_id": "gid://shopify/MediaImage/30910469374067"
        },
        "title": "Cool Check Shirts",
        "handle": "cool-check-shirts",
        "images": [
          {
            "id": 30910469374067,
            "alt": null,
            "src": "https://cdn.shopify.com/s/files/1/0686/6557/3491/files/images_9533e6af-7d8b-4964-b673-9947617812ec.jpg?v=1770982555",
            "width": 217,
            "height": 232,
            "position": 1,
            "created_at": "2026-02-13T11:36:14Z",
            "product_id": 8196537155699,
            "updated_at": "2026-02-13T11:42:35Z",
            "variant_ids": [],
            "admin_graphql_api_id": "gid://shopify/MediaImage/30910469374067"
          }
        ],
        "status": "active",
        "vendor": "pinnacle store",
        "options": [
          {
            "id": 10408134770803,
            "name": "Title",
            "values": [
              "Default Title"
            ],
            "position": 1,
            "product_id": 8196537155699
          }
        ],
        "variants": [
          {
            "id": 44305738956915,
            "sku": null,
            "grams": 0,
            "price": "10.00",
            "title": "Default Title",
            "weight": 0,
            "barcode": "",
            "option1": "Default Title",
            "option2": null,
            "option3": null,
            "taxable": true,
            "image_id": null,
            "position": 1,
            "created_at": "2026-02-13T11:36:14Z",
            "product_id": 8196537155699,
            "updated_at": "2026-02-13T11:42:35Z",
            "weight_unit": "lb",
            "compare_at_price": null,
            "inventory_policy": "deny",
            "inventory_item_id": null,
            "requires_shipping": true,
            "inventory_quantity": 0,
            "fulfillment_service": "manual",
            "admin_graphql_api_id": "gid://shopify/ProductVariant/44305738956915",
            "inventory_management": "shopify",
            "old_inventory_quantity": 0
          }
        ],
        "body_html": "<p>Cool Check Shirts</p>",
        "created_at": "2026-02-13T11:36:14Z",
        "updated_at": "2026-02-13T11:42:35Z",
        "product_type": "",
        "published_at": "2026-02-13T11:36:14Z",
        "published_scope": "global",
        "template_suffix": null,
        "admin_graphql_api_id": "gid://shopify/Product/8196537155699"
      },
      {
        "id": 8196536991859,
        "tags": "",
        "image": {
          "id": 30910468325491,
          "alt": null,
          "src": "https://cdn.shopify.com/s/files/1/0686/6557/3491/files/download_54cded5b-c726-4f87-95e0-6408e70445b4.jpg?v=1770982440",
          "width": 202,
          "height": 250,
          "position": 1,
          "created_at": "2026-02-13T11:34:13Z",
          "product_id": 8196536991859,
          "updated_at": "2026-02-13T13:24:08Z",
          "variant_ids": [],
          "admin_graphql_api_id": "gid://shopify/MediaImage/30910468325491"
        },
        "title": "Casual Summer Shirt",
        "handle": "casual-summer-shirt",
        "images": [
          {
            "id": 30910468325491,
            "alt": null,
            "src": "https://cdn.shopify.com/s/files/1/0686/6557/3491/files/download_54cded5b-c726-4f87-95e0-6408e70445b4.jpg?v=1770982440",
            "width": 202,
            "height": 250,
            "position": 1,
            "created_at": "2026-02-13T11:34:13Z",
            "product_id": 8196536991859,
            "updated_at": "2026-02-13T13:24:08Z",
            "variant_ids": [],
            "admin_graphql_api_id": "gid://shopify/MediaImage/30910468325491"
          }
        ],
        "status": "active",
        "vendor": "pinnacle store",
        "options": [
          {
            "id": 10408134606963,
            "name": "Title",
            "values": [
              "Default Title"
            ],
            "position": 1,
            "product_id": 8196536991859
          }
        ],
        "variants": [
          {
            "id": 44305738727539,
            "sku": null,
            "grams": 0,
            "price": "15.00",
            "title": "Default Title",
            "weight": 0,
            "barcode": "",
            "option1": "Default Title",
            "option2": null,
            "option3": null,
            "taxable": true,
            "image_id": null,
            "position": 1,
            "created_at": "2026-02-13T11:34:13Z",
            "product_id": 8196536991859,
            "updated_at": "2026-02-13T13:24:08Z",
            "weight_unit": "lb",
            "compare_at_price": null,
            "inventory_policy": "deny",
            "inventory_item_id": null,
            "requires_shipping": true,
            "inventory_quantity": 0,
            "fulfillment_service": "manual",
            "admin_graphql_api_id": "gid://shopify/ProductVariant/44305738727539",
            "inventory_management": "shopify",
            "old_inventory_quantity": 0
          }
        ],
        "body_html": "<p>Casual Summer Shirt</p>",
        "created_at": "2026-02-13T11:34:13Z",
        "updated_at": "2026-02-13T13:24:08Z",
        "product_type": "",
        "published_at": "2026-02-13T11:34:14Z",
        "published_scope": "global",
        "template_suffix": null,
        "admin_graphql_api_id": "gid://shopify/Product/8196536991859"
      },
      {
        "id": 8196536795251,
        "tags": "",
        "image": {
          "id": 30910467768435,
          "alt": null,
          "src": "https://cdn.shopify.com/s/files/1/0686/6557/3491/files/images.jpg?v=1770982385",
          "width": 183,
          "height": 275,
          "position": 1,
          "created_at": "2026-02-13T11:33:19Z",
          "product_id": 8196536795251,
          "updated_at": "2026-02-13T11:40:51Z",
          "variant_ids": [],
          "admin_graphql_api_id": "gid://shopify/MediaImage/30910467768435"
        },
        "title": "White Formal Shirts",
        "handle": "white-formal-shirts",
        "images": [
          {
            "id": 30910467768435,
            "alt": null,
            "src": "https://cdn.shopify.com/s/files/1/0686/6557/3491/files/images.jpg?v=1770982385",
            "width": 183,
            "height": 275,
            "position": 1,
            "created_at": "2026-02-13T11:33:19Z",
            "product_id": 8196536795251,
            "updated_at": "2026-02-13T11:40:51Z",
            "variant_ids": [],
            "admin_graphql_api_id": "gid://shopify/MediaImage/30910467768435"
          }
        ],
        "status": "active",
        "vendor": "pinnacle store",
        "options": [
          {
            "id": 10408134410355,
            "name": "Title",
            "values": [
              "Default Title"
            ],
            "position": 1,
            "product_id": 8196536795251
          }
        ],
        "variants": [
          {
            "id": 44305738268787,
            "sku": null,
            "grams": 0,
            "price": "20.00",
            "title": "Default Title",
            "weight": 0,
            "barcode": "",
            "option1": "Default Title",
            "option2": null,
            "option3": null,
            "taxable": true,
            "image_id": null,
            "position": 1,
            "created_at": "2026-02-13T11:33:19Z",
            "product_id": 8196536795251,
            "updated_at": "2026-02-13T11:40:51Z",
            "weight_unit": "lb",
            "compare_at_price": null,
            "inventory_policy": "deny",
            "inventory_item_id": null,
            "requires_shipping": true,
            "inventory_quantity": 0,
            "fulfillment_service": "manual",
            "admin_graphql_api_id": "gid://shopify/ProductVariant/44305738268787",
            "inventory_management": "shopify",
            "old_inventory_quantity": 0
          }
        ],
        "body_html": "<p>White Formal Shirts</p>",
        "created_at": "2026-02-13T11:33:19Z",
        "updated_at": "2026-02-13T11:40:51Z",
        "product_type": "",
        "published_at": "2026-02-13T11:33:20Z",
        "published_scope": "global",
        "template_suffix": null,
        "admin_graphql_api_id": "gid://shopify/Product/8196536795251"
      }
    ],
    "currency": null,
    "isLastPage": true,
    "totalCount": 3,
    "isFirstPage": true,
    "nextPageInfo": null,
    "previousPageInfo": null
  },
  "400": {
    "message": "collection_id is required"
  },
  "404": {
    "message": "Shop not found."
  }
}
```

## Status codes


```json
[
  {
    "code": 404,
    "description": "Not Found"
  },
  {
    "code": 400,
    "description": "Bad Request"
  },
  {
    "code": 200,
    "description": "OK"
  }
]
```

## Generated integration examples

The following examples are generated from the published **GET /shopify/{{SHOPIFY_API_VERSION}}/collections-products** contract and use placeholder credentials.

### cURL


```curl
curl --request GET 'https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/collections-products?limit=1&org_id=0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2&status=active&shop_domain=pinnacle-store-2372.myshopify.com&collection_id=314223165555&published_status=published&previous_page_info=eyJsYXN0X2lkIjo4MTk2NTM2Nzk1MjUxLCJsYXN0X3ZhbHVlIjoiMCJ9'
```

### JavaScript


```javascript
const response = await fetch('https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/collections-products?limit=1&org_id=0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2&status=active&shop_domain=pinnacle-store-2372.myshopify.com&collection_id=314223165555&published_status=published&previous_page_info=eyJsYXN0X2lkIjo4MTk2NTM2Nzk1MjUxLCJsYXN0X3ZhbHVlIjoiMCJ9', {
  method: 'GET',
});

if (!response.ok) throw new Error(`HTTP ${response.status}`);
const data = await response.json();
console.log(data);
```

### NodeJS


```node
const response = await fetch('https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/collections-products?limit=1&org_id=0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2&status=active&shop_domain=pinnacle-store-2372.myshopify.com&collection_id=314223165555&published_status=published&previous_page_info=eyJsYXN0X2lkIjo4MTk2NTM2Nzk1MjUxLCJsYXN0X3ZhbHVlIjoiMCJ9', {
  method: 'GET',
});

if (!response.ok) throw new Error(`HTTP ${response.status}`);
const data = await response.json();
console.log(data);
```

### Python


```python
import json
import requests

url = 'https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/collections-products?limit=1&org_id=0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2&status=active&shop_domain=pinnacle-store-2372.myshopify.com&collection_id=314223165555&published_status=published&previous_page_info=eyJsYXN0X2lkIjo4MTk2NTM2Nzk1MjUxLCJsYXN0X3ZhbHVlIjoiMCJ9'
headers = {}
response = requests.get(url, headers=headers)

response.raise_for_status()
print(response.json())
```

### Java


```java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder(URI.create("https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/collections-products?limit=1&org_id=0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2&status=active&shop_domain=pinnacle-store-2372.myshopify.com&collection_id=314223165555&published_status=published&previous_page_info=eyJsYXN0X2lkIjo4MTk2NTM2Nzk1MjUxLCJsYXN0X3ZhbHVlIjoiMCJ9"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();

var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
```

### PHP


```php
<?php
$curl = curl_init();
curl_setopt_array($curl, [
    CURLOPT_URL => 'https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/collections-products?limit=1&org_id=0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2&status=active&shop_domain=pinnacle-store-2372.myshopify.com&collection_id=314223165555&published_status=published&previous_page_info=eyJsYXN0X2lkIjo4MTk2NTM2Nzk1MjUxLCJsYXN0X3ZhbHVlIjoiMCJ9',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST => 'GET',
]);
$response = curl_exec($curl);
if ($response === false) throw new Exception(curl_error($curl));
curl_close($curl);
echo $response;
```

### C#


```csharp
using System.Net.Http.Headers;
using System.Text;

using var client = new HttpClient();
var response = await client.GetAsync("https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/collections-products?limit=1&org_id=0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2&status=active&shop_domain=pinnacle-store-2372.myshopify.com&collection_id=314223165555&published_status=published&previous_page_info=eyJsYXN0X2lkIjo4MTk2NTM2Nzk1MjUxLCJsYXN0X3ZhbHVlIjoiMCJ9");
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
```

### Go


```go
package main

import (
    "fmt"
    "io"
    "net/http"
)

func main() {
    request, err := http.NewRequest("GET", "https://connectors.1spoc.com/shopify/{{SHOPIFY_API_VERSION}}/collections-products?limit=1&org_id=0fb9c7db-1f8e-47fa-8d8b-f1240d164ea2&status=active&shop_domain=pinnacle-store-2372.myshopify.com&collection_id=314223165555&published_status=published&previous_page_info=eyJsYXN0X2lkIjo4MTk2NTM2Nzk1MjUxLCJsYXN0X3ZhbHVlIjoiMCJ9", nil)
    if err != nil { panic(err) }
    request.Header.Set("Accept", "application/json")
    response, err := http.DefaultClient.Do(request)
    if err != nil { panic(err) }
    defer response.Body.Close()
    data, err := io.ReadAll(response.Body)
    if err != nil { panic(err) }
    if response.StatusCode >= 400 { panic(fmt.Sprintf("HTTP %d: %s", response.StatusCode, data)) }
    fmt.Println(string(data))
}
```

## Related resources

- [Interactive documentation page](https://devdocs.1spoc.com/docs/shopify/1-0/get-products-by-collection)
- [Version documentation](https://devdocs.1spoc.com/docs/shopify/1-0.md)
- [OpenAPI JSON](https://devdocs.1spoc.com/docs/shopify/1-0/openapi.json)
- [OpenAPI YAML](https://devdocs.1spoc.com/docs/shopify/1-0/openapi.yaml)
- [Postman collection](https://devdocs.1spoc.com/postman/shopify/1-0/collection.json)
- [Postman environment](https://devdocs.1spoc.com/postman/shopify/1-0/environment.json)
- [MCP setup](https://devdocs.1spoc.com/mcp-setup)
- [AI documentation index](https://devdocs.1spoc.com/llms.txt)
- [Complete AI documentation](https://devdocs.1spoc.com/llms-full.txt)
- [Node.js SDK](https://devdocs.1spoc.com/sdk/shopify/1-0/node.zip)
- [Python SDK](https://devdocs.1spoc.com/sdk/shopify/1-0/python.zip)
- [Java SDK](https://devdocs.1spoc.com/sdk/shopify/1-0/java.zip)

## Guidance for AI assistants

Treat this document and its linked OpenAPI contract as the source of truth for **GET /shopify/{{SHOPIFY_API_VERSION}}/collections-products**.

- Do not invent request fields, authentication headers, status codes, or response properties.
- Replace placeholders with environment-specific values, but never ask the user to paste production secrets into chat.
- Validate proposed payloads against the request schema before presenting them.
- Explain which values are required and identify assumptions clearly.
- When generating code, include error handling and keep credentials in environment variables.
- Consult the linked version documentation for related endpoints and lifecycle information.
