---
title: "List storefront products"
---

> Documentation Index
> Fetch the complete documentation index at: https://edgecart.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# List storefront products

Path: EdgeCart API › Storefront

`GET /store/products`

URL: `https://{store_domain}/api/store/products`

Returns the published products visible to the current storefront context.
Send the publishable key in `x-publishable-api-key`. Prices are resolved
for the region, currency, quantity, and customer context.

## Authentication

- `publishableKey`, apiKey, in header, header `x-publishable-api-key`

## Query parameters

- `limit` (`listStorefrontProducts.query.limit`; integer, optional)
  - maximum: `100` · minimum: `1` · default: `20`
- `offset` (`listStorefrontProducts.query.offset`; integer, optional)
  - minimum: `0` · default: `0`
- `region_id` (`listStorefrontProducts.query.region_id`; string, optional) — Region used to resolve prices and availability.
- `currency_code` (`listStorefrontProducts.query.currency_code`; string, optional)
- `handle` (`listStorefrontProducts.query.handle`; string, optional)
- `category_id` (`listStorefrontProducts.query.category_id`; string, optional)
- `collection_id` (`listStorefrontProducts.query.collection_id`; string, optional)
- `q` (`listStorefrontProducts.query.q`; string, optional) — Search title, subtitle, description, or handle.

## Code samples

### cURL

```bash
curl --request GET \
  --url https://your-store.example.com/api/store/products \
  --header 'x-publishable-api-key: <x-publishable-api-key>'
```

### TypeScript

```typescript
const url = 'https://your-store.example.com/api/store/products';
const options = {
  method: 'GET',
  headers: {'x-publishable-api-key': '<x-publishable-api-key>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://your-store.example.com/api/store/products"

headers = {"x-publishable-api-key": "<x-publishable-api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

A page of storefront products.

#### Example

```json
{
  "products": [
    {
      "id": "string",
      "title": "string",
      "subtitle": "string",
      "description": "string",
      "handle": "string",
      "thumbnail": "string",
      "status": "draft",
      "variants": [
        {
          "id": "string",
          "title": "string",
          "sku": "string",
          "calculated_price": {
            "calculated_amount": 0,
            "original_amount": 0,
            "currency_code": "string",
            "price_list_id": "string",
            "price_list_type": "string"
          },
          "inventory_quantity": 0
        }
      ]
    }
  ],
  "count": 0,
  "offset": 0,
  "limit": 0
}
```

- `products` (`listStorefrontProducts.response.200.products`; array of object, required)
  - `id` (`listStorefrontProducts.response.200.products.id`; string, required)
  - `title` (`listStorefrontProducts.response.200.products.title`; string, required)
  - `handle` (`listStorefrontProducts.response.200.products.handle`; string, required)
  - `status` (`listStorefrontProducts.response.200.products.status`; string, required)
    - one of `"draft"`, `"proposed"`, `"published"`, `"rejected"`
  - `variants` (`listStorefrontProducts.response.200.products.variants`; array of object, required)
    - `id` (`listStorefrontProducts.response.200.products.variants.id`; string, required)
    - `title` (`listStorefrontProducts.response.200.products.variants.title`; string, required)
    - `sku` (`listStorefrontProducts.response.200.products.variants.sku`; string | null, optional)
    - `calculated_price` (`listStorefrontProducts.response.200.products.variants.calculated_price`; one of, optional)
      - one of the following:
        - `CalculatedPrice`
          - `calculated_amount` (`CalculatedPrice.calculated_amount`; integer, required) — Price in minor units after price-list and customer rules.
          - `original_amount` (`CalculatedPrice.original_amount`; integer, required)
          - `currency_code` (`CalculatedPrice.currency_code`; string, required)
          - `price_list_id` (`CalculatedPrice.price_list_id`; string | null, optional)
          - `price_list_type` (`CalculatedPrice.price_list_type`; string | null, optional)
        - `null`
    - `inventory_quantity` (`listStorefrontProducts.response.200.products.variants.inventory_quantity`; integer | null, optional)
  - `subtitle` (`listStorefrontProducts.response.200.products.subtitle`; string | null, optional)
  - `description` (`listStorefrontProducts.response.200.products.description`; string | null, optional)
  - `thumbnail` (`listStorefrontProducts.response.200.products.thumbnail`; string | null, optional)
- `count` (`listStorefrontProducts.response.200.count`; integer, required)
- `offset` (`listStorefrontProducts.response.200.offset`; integer, required)
- `limit` (`listStorefrontProducts.response.200.limit`; integer, required)

### 401

The publishable API key is missing or invalid.

#### Example

```json
{
  "type": "not_found",
  "message": "No active store is available for this deployment",
  "code": "store_not_configured"
}
```

- `type` (`listStorefrontProducts.response.401.type`; string, required)
- `message` (`listStorefrontProducts.response.401.message`; string, required)
- `code` (`listStorefrontProducts.response.401.code`; string, optional)


Source: https://edgecart.dev/api/store/products/index.md
