Run a full-text search and get results grouped by category (for example, Documentation, API Reference).
Locale code for the content to search (for example, en, default_locale). Must match a locale configured in your project. Locales are set in redocly.yaml under the l10n option.
- Mock serverhttps://redocly.com/_mock/docs/realm/customization/search-api/openapi/_search
- Project serverhttps://redocly.com/_search
curl -i -X POST \
https://redocly.com/_mock/docs/realm/customization/search-api/openapi/_search \
-H 'Content-Type: application/json' \
-d '{
"query": "getting started",
"filter": [],
"locale": "default_locale"
}'Search results grouped by category.
Facet field names to arrays of value and count. Keys may include: redocly_category, redocly_product, redocly_version, redocly_teams, httpMethod, httpPath, apiTitle, apiVersion, and any custom facet fields.
Response
{ "facets": { "redocly_category": [ … ], "redocly_product": [], "redocly_version": [], "redocly_teams": [], "httpMethod": [], "httpPath": [], "apiTitle": [], "apiVersion": [] }, "documents": { "Documentation": [ … ] } }