[{"data":1,"prerenderedAt":7},["ShallowReactive",2],{"docs-entities\u002Fcatalog-services\u002Fsearch":3,"docs-tabs-entities\u002Fcatalog-services\u002Fsearch":6},{"content":4,"lastmod":5},"## Search services\n\n`POST \u002Fv1\u002Fcatalog-services\u002Fsearch`\n\nSearches the services of a product catalog by conditions passed in the request body.\n\nUnlike [`GET \u002Fv1\u002Fcatalog-services`](.\u002Flist.md), the `filter`, `select`, `sort`, `limit`, and `offset` parameters are passed in the JSON body rather than in the query string — conditions on several fields are set 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 by the fields of [`GET \u002Fv1\u002Fcatalog-services\u002Ffields`](.\u002Ffields.md). The `iblockId` key is required — the product catalog ID from [`GET \u002Fv1\u002Fcatalogs`](\u002Fdocs\u002Fentities\u002Fcatalogs\u002Flist); this catalog has an empty `productIblockId`. `iblockSectionId` with an ID from [`GET \u002Fv1\u002Fcatalog-sections`](\u002Fdocs\u002Fentities\u002Fcatalog-sections\u002Flist) selects the services of one section.\u003Cbr>[Filtering syntax](\u002Fdocs\u002Ffiltering). Example: `{ \"iblockId\": 25, \"iblockSectionId\": 281 }` |\n| `select` | string[] | no | — | Field selection: `[\"iblockId\", \"id\", \"name\", \"code\"]`. If the parameter is passed, it must include `iblockId` and `id`. Without `select`, the response carries a reduced set of fields: the symbolic code, external code, sort order, VAT rate, texts, images, and catalog properties are returned only when listed explicitly — [Service fields](.\u002Ffields.md) lists which ones |\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-services\u002Fsearch\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"filter\": { \"iblockId\": 25, \"iblockSectionId\": 281 },\n    \"limit\": 10\n  }'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-services\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, \"iblockSectionId\": 281 },\n    \"limit\": 10\n  }'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst res = await fetch('https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fcatalog-services\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, iblockSectionId: 281 },\n    limit: 10,\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-services\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, iblockSectionId: 281 },\n    limit: 10,\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 services. For the fields of each item, see [Service fields](.\u002Ffields.md) |\n| `meta.total` | number | How many records matched the filter |\n| `meta.hasMore` | boolean | Whether there are more records beyond `limit` |\n| `meta.durationMs` | number | Request duration in milliseconds |\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      \"active\": true,\n      \"available\": false,\n      \"bundle\": false,\n      \"createdBy\": 1295,\n      \"dateActiveFrom\": null,\n      \"dateActiveTo\": null,\n      \"dateCreate\": \"2026-10-08T20:50:59.000Z\",\n      \"iblockId\": 25,\n      \"iblockSectionId\": 281,\n      \"id\": 7231,\n      \"measure\": 9,\n      \"modifiedBy\": 1295,\n      \"name\": \"Air conditioner installation\",\n      \"timestampX\": \"2026-10-08T20:50:59.000Z\",\n      \"type\": 7,\n      \"vatIncluded\": true\n    },\n    {\n      \"active\": true,\n      \"available\": false,\n      \"bundle\": false,\n      \"createdBy\": 1295,\n      \"dateActiveFrom\": null,\n      \"dateActiveTo\": null,\n      \"dateCreate\": \"2026-10-08T20:51:00.000Z\",\n      \"iblockId\": 25,\n      \"iblockSectionId\": 281,\n      \"id\": 7233,\n      \"measure\": 9,\n      \"modifiedBy\": 1295,\n      \"name\": \"Air conditioner cleaning\",\n      \"timestampX\": \"2026-10-08T20:51:00.000Z\",\n      \"type\": 7,\n      \"vatIncluded\": true\n    }\n  ],\n  \"meta\": {\n    \"total\": 2,\n    \"hasMore\": false,\n    \"durationMs\": 165\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-services\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 | `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 service does not have. The message contains the list of available fields |\n| 400 | `UNKNOWN_SELECT_FIELD` | `select` contains a name the service does not have. The message contains the list of available fields |\n| 400 | `SELECT_FIELD_NOT_RETURNED` | `select` contains `iblockSection` — this name is not supported in the selection. The main section comes in `iblockSectionId` |\n| 422 | `BITRIX_ERROR` | `select` does not include `iblockId` (`Required select fields: iblockId`) |\n| 422 | `BITRIX_ERROR` | `select` does not include `id` (`Required select fields: id`) |\n| 422 | `BITRIX_ERROR` | `filter.iblockId` holds the ID of an offer catalog, not a product catalog (`productType is not allowed for this catalog`) |\n| 422 | `BITRIX_ERROR` | There is no catalog with the specified `iblockId` (`iblock is not catalog`) |\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 services](\u002Fdocs\u002Fentities\u002Fcatalog-services\u002Flist)\n- [Create a service](\u002Fdocs\u002Fentities\u002Fcatalog-services\u002Fcreate)\n- [Get a service](\u002Fdocs\u002Fentities\u002Fcatalog-services\u002Fget)\n- [Service fields](\u002Fdocs\u002Fentities\u002Fcatalog-services\u002Ffields)\n- [Filtering syntax](\u002Fdocs\u002Ffiltering)\n- [API reference](\u002Fdocs\u002Fapi-reference)\n","2026-11-19",{},1795415203321]