Skip to content
unlob

Field projection

A full hit carries about twenty fields. Most agents read three.

Why it matters

When a search response is handed to a model, every field you did not need is context you paid for. Projecting to url, title and snippet cuts the response substantially and makes the model's job easier by removing fields it has no use for.

bashbash
curl -H "x-api-key: $UNLOB_API_KEY" \
  "https://api.unlob.com/search?q=rust+async&fields[]=url&fields[]=title&fields[]=snippet"

Fields worth keeping

If the agent makes trust judgements, keep independent_sources and host_rank — they are small and they carry more decision value per token than the snippet does. If it will fetch documents, keep id. If recency matters, keep published_at.

Start on the free tier

10,000 requests a month, no card. Everything documented here works on every plan.