moderation to remove unsafe results before they reach your agent. It filters exactly as safety_mode did, which it replaces. safety_mode keeps working until 1 March 2027, and every request that sends it now gets a warning.
If your code sends safety_mode, switch to moderation before 1 March 2027. From that day, any request that sends safety_mode fails with 400.
What changed
moderation takes moderate or strict. Leave it out, or send null or an empty string, for no moderation. It works where safety_mode worked: with mode set to pro (the default) or realtime, on a text query, and not on Time Machine search. Results that a safety model judges unsafe are removed and not replaced, so a query can return fewer than max_results results, or none. Moderation and safety_mode now also work with disable_cards.
Search with moderation
This request searches without an API key and removes results judged unsafe at the moderate level:https://api.keenable.ai/v1/search with an X-API-Key header instead of X-Keenable-Title.
The MCP server’s search_web_pages tool takes moderation too. See MCP server. The SDKs (moderation in Python, TypeScript and Rust, Moderation in Go) and the CLI (--moderation) take it from their next release.
Warnings for safety_mode
A request that sendssafety_mode, with any value, still runs as before. The 200 response adds a warnings list to the body:
Deprecation: @1795392000, the date the parameter was deprecated as an RFC 9745 date, and Sunset: Mon, 01 Mar 2027 00:00:00 GMT, the date it stops working. To find the requests you still have to change, log warnings or these headers. See Deprecation warnings.
Time Machine search doesn’t take moderation, and safety_mode there is unchanged until 1 March 2027. See Time Machine search.
Requests that fail
A request withmoderation fails with 400, code invalid_parameter and param set to moderation, in these cases:
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"?.
If you send safesearch, safe_search, safe or safety instead, the API returns unknown_parameter, and did_you_mean maps the name to moderation. See 400 Invalid request parameters.
From 1 March 2027
safety_mode is removed. Any request that sends it, whatever its value and on any search endpoint, including Time Machine search and the MCP server, fails with 400, code invalid_parameter, param set to safety_mode, and "safety_mode": was removed on 2027-03-01; send "moderation" instead ("moderate" or "strict", or leave it out for no moderation). Send moderation instead, or leave both out for no moderation.
Related
- Search API reference: the
moderationfield and every other request field. - Versioning and deprecation: how long a deprecated parameter keeps working.
- Changelog: every change, newest first.