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

# Get Product Group

> The storefront variant group of a product — the group id and the member origin product numbers.

Resolve the **variant group** a product belongs to. SmartStore sellers group colour/size variants under one group; this returns the group id and the member `originProductNo`s so you can fetch each variant.

**Credits:** 5

## Authorization

**X-API-Key** `string` *required*

Your ScrapeBadger API key.

## Path Parameters

**origin\_product\_no** `string` *required*

The product's origin product number.

## Response

**origin\_product\_no** `string`

Echo of the requested product.

**group\_id** `string`

The variant group id, or `null` when the product is not grouped.

**origin\_product\_nos** `string[]`

Member origin product numbers.

**is\_grouped** `boolean`

## Example

```bash cURL theme={null}
curl "https://scrapebadger.com/v1/naver/products/5123456789/group" \
  -H "X-API-Key: YOUR_API_KEY"
```

```javascript Node.js theme={null}
const res = await fetch(
  "https://scrapebadger.com/v1/naver/products/5123456789/group",
  { headers: { "X-API-Key": process.env.SCRAPEBADGER_API_KEY } },
);
const data = await res.json();
```

```python Python theme={null}
import requests

res = requests.get(
    "https://scrapebadger.com/v1/naver/products/5123456789/group",
    headers={"X-API-Key": "YOUR_API_KEY"},
)
data = res.json()
```

```json Response theme={null}
{
  "origin_product_no": "5123456789",
  "group_id": "G100200300",
  "origin_product_nos": [
    "5123456789",
    "5123456790",
    "5123456791"
  ],
  "is_grouped": true
}
```

## Errors

| Status | Meaning |
| - | - |
| `404` | The requested resource does not exist or has been removed. |
| `422` | Naver served a challenge instead of content — **not billed**. Retry; it succeeds. |
| `502` | Unexpected upstream failure — **not billed**. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.