[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcatalog-skus\u002Fsearch":3,"docs-tabs-entities\u002Fcatalog-skus\u002Fsearch":6},{"content":4,"lastmod":5},"## Search SKUs\n\n`POST \u002Fv1\u002Fcatalog-skus\u002Fsearch`\n\nSearch parent products using the conditions passed in the request body.\n\nUnlike [`GET \u002Fv1\u002Fcatalog-skus`](.\u002Flist.md), the `filter`, `select`, `sort`, `limit`, and `offset` parameters are passed in the JSON body rather than in the query string — conditions across several fields are expressed as a nested structure. Like the list, search requires `filter.iblockId` — without this field the request returns `400`. The response format is the same as for the list.\n\nThe `dateCreate`, `timestampX`, `dateActiveFrom`, and `dateActiveTo` fields are not accepted in `filter`: the request returns `400 UNKNOWN_FILTER_FIELD` before calling Bitrix24. These dates remain available in `select` and responses.\n\n## Request fields (body)\n\n| Parameter | Type | Required | Default | Description |\n|----------|-----|:-----:|-----------|---------|\n| `filter` | object | yes | — | Filtering conditions. The `iblockId` key is required — the product catalog ID from [`GET \u002Fv1\u002Fcatalogs`](\u002Fdocs\u002Fentities\u002Fcatalogs). The `type` key accepts one exact number: `3` — parent products with offers, `6` — without offers.\u003Cbr>[Filtering syntax](\u002Fdocs\u002Ffiltering). Example: `{ \"iblockId\": 25, \"type\": 3 }` |\n| `select` | string[] | no | — | Field selection: `[\"iblockId\", \"id\", \"name\", \"type\"]`. If the parameter is passed, it must include `iblockId` and `id`. Without `select`, the response carries a reduced set of fields: the symbolic code, texts, sort order, and external code are returned only when listed explicitly — [SKU fields](.\u002Ffields.md) lists which ones. A catalog property is requested by its own name: `[\"iblockId\", \"id\", \"name\", \"property295\"]` |\n| `sort` | string | no | — | Sort field. The `-` prefix means descending: `\"-id\"` |\n| `limit` | number | no | `50` | Number of records (up to 5000) |\n| `offset` | number | no | `0` | Offset from the start of the result set |\n| `start` | number | no | `0` | Uses the same offset value as `offset`. If both are provided, `offset` takes precedence, including `0`; `offset: null` uses `start`. |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-skus\u002Fsearch\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"filter\": { \"iblockId\": 25, \"type\": 3 },\n    \"sort\": \"-id\",\n    \"limit\": 2\n  }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-skus\u002Fsearch\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"filter\": { \"iblockId\": 25, \"type\": 3 },\n    \"sort\": \"-id\",\n    \"limit\": 2\n  }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-skus\u002Fsearch', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    filter: { iblockId: 25, type: 3 },\n    sort: '-id',\n    limit: 2,\n  }),\n})\n\nconst { success, data, meta } = await res.json()\nconsole.log(`Found: ${meta.total}`)\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-skus\u002Fsearch', {\n  method: 'POST',\n  headers: {\n    'X-Api-Key': 'YOUR_APP_KEY',\n    'Authorization': 'Bearer USER_SESSION_TOKEN',\n    'Content-Type': 'application\u002Fjson',\n  },\n  body: JSON.stringify({\n    filter: { iblockId: 25, type: 3 },\n    sort: '-id',\n    limit: 2,\n  }),\n})\n\nconst { success, data, meta } = await res.json()\n```\n\n## Response fields\n\n| Field | Type | Description |\n|------|-----|---------|\n| `success` | boolean | Always `true` on success |\n| `data` | array | Array of parent products. For the fields of each item, see [SKU fields](.\u002Ffields.md) |\n| `meta.total` | number | Number of records matching the filter |\n| `meta.hasMore` | boolean | Whether there are more records beyond `limit` |\n| `meta.durationMs` | number | Request duration in milliseconds |\n| `meta.warnings` | array | Warnings about `select`. Present when `select` contains a name that is not in the field reference: an item `{ code: \"UNKNOWN_SELECT_FIELD\", message, field }`, and no value for that name is included in the response |\n\nThe `meta` fields sit next to `data`, not inside it. Paginate using `meta.hasMore`: a `data` array whose length equals `limit` can still be the last page.\n\n## Response example\n\n```json\n{\n  \"success\": true,\n  \"data\": [\n    {\n      \"id\": 7205,\n      \"iblockId\": 25,\n      \"iblockSectionId\": 19,\n      \"name\": \"Basic hoodie\",\n      \"type\": 3,\n      \"active\": true,\n      \"available\": true,\n      \"bundle\": false,\n      \"createdBy\": 1295,\n      \"modifiedBy\": 1295,\n      \"dateActiveFrom\": null,\n      \"dateActiveTo\": null,\n      \"dateCreate\": \"2026-10-08T18:45:34.000Z\",\n      \"timestampX\": \"2026-10-08T18:45:36.000Z\"\n    },\n    {\n      \"id\": 7203,\n      \"iblockId\": 25,\n      \"iblockSectionId\": null,\n      \"name\": \"Basic T-shirt\",\n      \"type\": 3,\n      \"active\": true,\n      \"available\": true,\n      \"bundle\": false,\n      \"createdBy\": 1295,\n      \"modifiedBy\": 1295,\n      \"dateActiveFrom\": null,\n      \"dateActiveTo\": null,\n      \"dateCreate\": \"2026-10-08T18:45:34.000Z\",\n      \"timestampX\": \"2026-10-08T18:45:35.000Z\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 14,\n    \"hasMore\": true,\n    \"durationMs\": 140\n  }\n}\n```\n\n## Error response example\n\n400 — the required filter was not passed:\n\n```json\n{\n  \"success\": false,\n  \"error\": {\n    \"code\": \"MISSING_REQUIRED_FILTER\",\n    \"message\": \"POST \u002Fv1\u002Fcatalog-skus\u002Fsearch requires filter fields: iblockId. Example body: { \\\"filter\\\": {\\\"iblockId\\\":\\\"...\\\"} }\"\n  }\n}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|------|-----|---------|\n| 400 | `MISSING_REQUIRED_FILTER` | The required `filter.iblockId` filter was not passed. The request is rejected before Bitrix24 is called — the message contains the name of the missing field and a request body example |\n| 400 | `UNSUPPORTED_FILTER` | The `filter.type` key was passed as something other than a single number `3` or `6` — another number, an operator, or an array |\n| 422 | `BITRIX_ERROR` | `iblockId` points to an offer catalog (`productType is not allowed for this catalog`) |\n| 422 | `BITRIX_ERROR` | `iblockId` is not a catalog (`iblock is not catalog`) |\n| 422 | `BITRIX_ERROR` | `select` was passed without `iblockId` (`Required select fields: iblockId`) |\n| 422 | `BITRIX_ERROR` | `select` was passed without `id` (`Required select fields: id`) |\n| 400 | `UNKNOWN_FILTER_FIELD` | Unknown filter field or a date field: `dateCreate`, `timestampX`, `dateActiveFrom`, `dateActiveTo`. The message contains the list of available fields |\n| 400 | `UNKNOWN_SORT_FIELD` | Sorting by a field the parent product does not have. The message contains the list of available fields |\n| 403 | `SCOPE_DENIED` | The API key does not have the `catalog` scope |\n| 401 | `MISSING_API_KEY` | The `X-Api-Key` header was not passed |\n| 429 | `RATE_LIMITED` | Rate limit exceeded: 300 requests per minute per portal. All API keys of the portal share one limit. The current limit is returned in the `x-ratelimit-limit` header. Retry after the delay in the `Retry-After` header |\n\nFor the full list of common API errors, see [Errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [List SKUs](\u002Fdocs\u002Fentities\u002Fcatalog-skus\u002Flist)\n- [Create an SKU](\u002Fdocs\u002Fentities\u002Fcatalog-skus\u002Fcreate)\n- [Get an SKU](\u002Fdocs\u002Fentities\u002Fcatalog-skus\u002Fget)\n- [SKU fields](\u002Fdocs\u002Fentities\u002Fcatalog-skus\u002Ffields)\n- [Catalog offers](\u002Fdocs\u002Fentities\u002Fcatalog-offers)\n- [Filtering syntax](\u002Fdocs\u002Ffiltering)\n- [API reference](\u002Fdocs\u002Fapi-reference)\n","2026-11-19",{},1795415204909]