Skip to content

Search

POST /search

Runs a metasearch across many engines, then (on advanced depth) fetches and extracts clean markdown from each result. Returns clean, structured JSON.

Terminal window
curl -X POST https://api.crisps.ai/search \
-H "Authorization: Bearer $CRISPS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "context rot long-context LLM degradation",
"search_depth": "advanced",
"max_results": 5,
"topic": "general",
"include_answer": false,
"include_domains": ["arxiv.org"]
}'
POST /search Try it
ParameterTypeDefaultDescription
query requiredstringThe search query.
search_depthstringadvancedbasic (snippets only, 1 credit) or advanced (fetch + extract raw_content, 2 credits).
max_resultsinteger10Number of results to return.
include_raw_contentbool | stringtruetrue / "markdown" / "text" — include extracted page body. advanced only.
include_answerboolfalseReturn an LLM answer with [n] citations. Adds a credit surcharge.
chunks_per_sourceinteger313. On advanced, return the top-N most relevant chunks per source.
topicstringgeneral, news, or finance.
time_rangestringday | week | month | year (or d/w/m/y).
daysintegerLook-back window for news.
start_date / end_datestringYYYY-MM-DD bounds.
include_domainsstring[]Restrict results to these domains.
exclude_domainsstring[]Drop results from these domains.
countrystringLocale hint for the general topic.
exact_matchboolfalseOnly quoted-phrase matches.
safe_searchboolfalseFilter explicit results.
include_imagesboolfalseInclude related image URLs.
include_image_descriptionsboolfalseAdd short descriptions to images.
include_faviconboolfalseInclude each result’s favicon URL.
include_usageboolfalseAdd a usage: { credits } object to the response body.
{
"query": "context rot long-context LLM degradation",
"results": [
{
"title": "Lost in the Middle: How Language Models Use Long Contexts",
"url": "https://arxiv.org/abs/2307.03172",
"content": "We analyze how LMs use long input contexts …",
"score": 0.97,
"raw_content": "# Lost in the Middle\n\n## Abstract\n…"
}
],
"response_time": 2.41
}
FieldTypeDescription
results[].titlestringResult title.
results[].urlstringCanonical URL.
results[].contentstringSearch snippet.
results[].scorenumber0–1 relevance (cross-encoder reranked on advanced).
results[].raw_contentstring?Extracted main content (markdown/text). Present on advanced when ≥ 200 chars.
answerstring?Present when include_answer is set and a model is configured.
imagesstring[]?Present when include_images is set.
usageobject?{ credits } — present when include_usage is set.
response_timenumberServer processing time (seconds).