For AI agents: markdown of this page — /docs-content-en/entities/pages/search.md documentation index — /llms.txt
Search pages
POST /v1/pages/search
Returns a list of pages matching a filter in the request body. Compared with GET /v1/pages, it is more convenient for complex conditions: parameters are passed in JSON, and you can use MongoDB-style nested operators (>=, <=, !, in).
The domainId (DOMAIN_ID) field is not requested by default. An explicit selection of this field is forwarded to Bitrix24 and can return 422 BITRIX_ERROR with the Bitrix24 code SYSTEM_ERROR.
Request fields (body)
| Field | Type | Default | Description |
|---|---|---|---|
Fieldfilter |
Typeobject | Default— | DescriptionFilter by the page's key fields. Filtering syntax. Example: {"filter": {"siteId": 3}} |
Fieldselect |
Typestring[] | Default— | DescriptionList of fields to return. Without select, page fields other than domainId are requested, in camelCase (as in the card) |
Fieldlimit |
Typenumber | Default50 |
DescriptionNumber of records (up to 5000) |
Fieldoffset |
Typenumber | Default0 |
DescriptionSkip N records |
Fieldscope |
Typestring | Default— | DescriptionInternal landing area: KNOWLEDGE / GROUP / MAINPAGE. Without the parameter, pages of regular landing sites are returned. Accepted at the top level of the body ("scope": "KNOWLEDGE") or inside filter.scope — both forms produce the same request to Bitrix24 |
Examples
curl — personal key
curl -X POST "https://vibecode.bitrix24.com/v1/pages/search" \
-H "X-Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"filter": { "siteId": 3 },
"select": ["id", "title", "code", "siteId", "active", "dateModify"],
"limit": 10
}'
curl — OAuth application
curl -X POST "https://vibecode.bitrix24.com/v1/pages/search" \
-H "X-Api-Key: YOUR_APP_KEY" \
-H "Authorization: Bearer USER_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"filter": { "siteId": 3 },
"select": ["id", "title", "code", "siteId", "active", "dateModify"],
"limit": 10
}'
JavaScript — personal key
const res = await fetch('https://vibecode.bitrix24.com/v1/pages/search', {
method: 'POST',
headers: {
'X-Api-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
filter: { siteId: 3 },
select: ['id', 'title', 'code', 'siteId', 'active', 'dateModify'],
limit: 10,
}),
})
const { success, data, meta } = await res.json()
console.log(`Found ${meta.total} pages in ${meta.durationMs} ms`)
JavaScript — OAuth application
const res = await fetch('https://vibecode.bitrix24.com/v1/pages/search', {
method: 'POST',
headers: {
'X-Api-Key': 'YOUR_APP_KEY',
'Authorization': 'Bearer USER_SESSION_TOKEN',
'Content-Type': 'application/json',
},
body: JSON.stringify({
filter: { siteId: 3 },
select: ['id', 'title', 'code', 'siteId', 'active', 'dateModify'],
limit: 10,
}),
})
const { success, data, meta } = await res.json()
Response fields
| Field | Type | Description |
|---|---|---|
Fieldsuccess |
Typeboolean | DescriptionAlways true on success |
Fielddata |
Typearray | DescriptionArray of found pages |
Fielddata[].id |
Typenumber | DescriptionPage identifier |
Fielddata[].title |
Typestring | DescriptionPage title |
Fielddata[].code |
Typestring | DescriptionSymbolic code of the page |
Fielddata[].siteId |
Typenumber | DescriptionSite identifier |
Fielddata[].active |
Typeboolean | DescriptionWhether the page is active |
Fielddata[].description |
Typestring | null | DescriptionArbitrary description |
Fielddata[].createdById |
Typenumber | DescriptionIdentifier of the employee who created it |
Fielddata[].dateCreate |
Typedatetime | DescriptionCreation date. A string in the account locale format, not ISO 8601 |
Fielddata[].dateModify |
Typedatetime | DescriptionLast modification date. Same format |
Fieldmeta.total |
Typenumber | DescriptionTotal number of records matching the filter |
Fieldmeta.hasMore |
Typeboolean | DescriptionWhether there are more records beyond limit |
Fieldmeta.durationMs |
Typenumber | DescriptionRequest execution time (ms) |
The URL of any page from the data array is built from its id and siteId:
https://<portal>.bitrix24.com/sites/site/<siteId>/view/<id>/
<siteId> — ID of the site the page belongs to (the siteId field of each item). <portal> — the Bitrix24 portal domain. Access is restricted by the employee's permissions in Bitrix24.
Response example
{
"success": true,
"data": [
{
"id": 3,
"title": "Title change",
"code": "promo-page",
"siteId": 3,
"active": true,
"description": null,
"createdById": 1,
"dateCreate": "22.04.2020 14:39:17",
"dateModify": "06.05.2024 15:43:27"
},
{
"id": 7,
"title": "Test page",
"code": "test",
"siteId": 3,
"active": true,
"description": null,
"createdById": 1,
"dateCreate": "25.05.2020 17:34:17",
"dateModify": "10.10.2022 15:25:30"
}
],
"meta": {
"total": 13,
"hasMore": true,
"durationMs": 171
}
}
Error response example
422 — a nonexistent field in the filter:
{
"success": false,
"error": {
"code": "BITRIX_ERROR",
"message": "Unknown field definition `nonsense` (nonsense) for \\Bitrix\\Landing\\Internals\\Landing Entity."
}
}
Errors
| HTTP | Code | Description |
|---|---|---|
| HTTP422 | CodeBITRIX_ERROR |
DescriptionAn unknown field was passed in filter, or another parameter that Bitrix24 does not support |
| HTTP403 | CodeSCOPE_DENIED |
DescriptionThe API key does not have the landing scope |
| HTTP401 | CodeTOKEN_MISSING |
DescriptionThe API key has no configured tokens |
| HTTP429 | CodeRATE_LIMITED |
DescriptionRate 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 |
For the full list of general API errors, see Errors.
Known specifics
When to choose search versus list. Both endpoints return the same set of pages for the same filter. Use POST /v1/pages/search when the filter is more complex than equality (for example, id in [3, 7, 9]) — escaping nested operators is easier in a JSON body. For simple filter[field]=value cases, GET /v1/pages is enough.
Date format in the filter — the account locale format, and a format from another locale silently returns an empty list. Pass a date in the filter exactly as the account returns it in the response: not as ISO 8601, but in the account's own locale format — DD.MM.YYYY HH:MM:SS (06.06.2026 00:00:00) in the RU locale, MM/DD/YYYY hh:mm:ss (06/06/2026 00:00:00) in the EN locale. A value in another locale's format, or in ISO, is not recognized by Bitrix24, which returns an empty list with code 200 — there is no error, so the mismatch is easy to miss. The only reliable way to learn the format of a specific account is to read dateModify of any page (GET /v1/pages?limit=1) and pass the date the same way. The same format is used in the filter, in the list and in the card — see Field reference.
meta.durationMs. Unlike list, search always returns the request duration in milliseconds — useful when debugging performance.
Pagination via offset is supported. Vibecode returns the requested [offset, offset + limit) window. The meta.total value is the exact number of records matching the filter, and meta.hasMore shows whether there are records beyond the window.