翻篇收录说明
翻篇网页快照

Safe search for pro and realtime search - Keenable

https://docs.keenable.ai/changelog/2026-11-safe-search

最近抓取:2026-12-03 05:57:28(北京时间)

最近内容变化:2026-12-03 05:57:28(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Released November 2026: send safety_mode moderate or strict on a pro or realtime search to remove results a safety model judges unsafe.

正文摘录

Released November 2026. Search takes safety_mode to remove unsafe results before they reach your agent. Send moderate or strict, and results that a safety model judges unsafe at that level don’t come back. Use it when your agent shows results to people, for example in a consumer chat app. safety_mode is deprecated and stops working on 1 March 2027. Send moderation instead: moderate and strict filter the same way, and you leave it out for no moderation. A request with safety_mode now gets a deprecated_parameter warning. safety_mode now also works with disable_cards, so the disable_cards error below no longer occurs. See Moderation replaces safety_mode. Values safety_modeWhat comes backoffEvery result. This is the default when you leave safety_mode out.moderateResults without the ones judged unsafe at the moderate level.strictResults without the ones judged unsafe at the strict level. strict removes more than moderate. Removed results aren’t replaced. A query can return fewer than max_results results, or none. Search with safe search This request searches without an API key and removes results judged unsafe at the moderate level. It leaves mode out, so the search runs in pro, the default: curl -X POST https://api.keenable.ai/v1/search/public \ -H "Content-Type: application/json" \ -H "X-Keenable-Title: My App" \ -d '{ "query": "best beginner snowboard tricks", "safety_mode": "moderate", "max_results": 5 }' You get the usual search response, with up to 5 results. With an API key, send the same body to https://api.keenable.ai/v1/search with an X-API-Key header instead of X-Keenable-Title. The SDKs, the CLI and the MCP server’s search_web_pages tool don’t take safety_mode yet. Call the Search API over HTTP to use it. Requests that fail safety_mode set to moderate or strict works only on an ordinary pro or realtime search. Otherwise the request returns 400 with the code invalid_parameter and param set to safety_mode. The most common cases are below; the safety_mode field lists every one: RequestmessageFixmode set to another mode"safety_mode": is only supported in "pro" and "realtime" modesSet mode to pro or realtime.disable_cards: true in the same request"safety_mode": cannot be combined with disable_cardsDrop one of the two.A query that is a URL, with no exclude_domains"safety_mode": is not supported when the query is a URL: the page is fetched as is, not filteredSend a text query, or read the page with Fetch.A value other than off, moderate or strict"safety_mode": is not a supported safety mode; use "off", "moderate" or "strict"Send one of the three values, in lowercase. safety_mode: "off" never fails. A value that differs from a supported one only in case or spaces, such as "Strict", gets a message that asks did you mean "strict"?. The failed request returns a body like this excerpt: { "error": "Invalid parameter", "type": "invalid_request_error", "code": "invalid_parameter", "message": "\"safety_mode\": cannot be combined with disable_cards", "fix": "Correct the \"safety_mode\" parameter (cannot be combined with disable_cards) and retry.", "docs_url": "https://docs.keenable.ai/errors#invalid-parameter", "retryable": false, "param": "safety_mode" } If you send safesearch or safe_search instead, the API returns unknown_parameter, and did_you_mean maps the name to safety_mode. See 400 Invalid request parameters. Related Search: every search parameter, with examples. Search API reference: the request and response fields. Changelog: every change, newest first.