Skip to content
unlob

safe

booleandefault: true

Drops explicit content. On by default.

Safety is classified at admission into safe, mature and explicit. The default drops explicit passages; setting safe=false includes them, which some research and moderation workloads legitimately need.

Example

safebash
curl -H "x-api-key: $UNLOB_API_KEY" \
  "https://api.unlob.com/search?q=content+moderation&safe=false"

Common questions

What does the safe filter do?

Drops explicit content. On by default.

When should I use safe?

Leave it alone unless you have a specific reason. Turn it off only for moderation or research.

Filters are free

Every filter is evaluated against a stored field, so it narrows the candidate set before scoring — a filtered query is often faster than an unfiltered one.