content_type
string[]Restricts results to particular kinds of page.
Content type is assigned at index time from structure and markup, not guessed from the URL. Asking only for docs when your agent needs API documentation removes blog posts, forum threads and marketing pages in one parameter.
Accepted values
- article
- news
- docs
- reference
- qa
- forum
- academic
- product
- code
- how-to
- opinion
- video
- document
The live vocabulary is served by /describe — read it rather than hardcoding this list.
Example
curl -H "x-api-key: $UNLOB_API_KEY" \
"https://api.unlob.com/search?q=oauth+refresh+token&content_type[]=docs"Common questions
What does the content_type filter do?
Restricts results to particular kinds of page.
When should I use content_type?
You know the shape of the answer — reference documentation, a paper, a forum thread.
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.