POST /v1/search

Web search API.
Answers with sources.

Create API keyAPI reference
web + news1–20 results60 RPM
What should I check before seeing the northern lights in Iceland?

Request

search
curl https://www.ninjachat.ai/api/v1/search \
  -H "Authorization: Bearer $NINJACHAT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "What should I check before seeing the northern lights in Iceland?",
    "group": "web",
    "include_answer": true
  }'

Parameters

querystring

The search query

group"web" | "news"

Defaults to "web"

max_results1–20

Defaults to 10

search_depth"basic" | "advanced"

Defaults to "basic"

include_answerboolean

Return a synthesized answer

include_imagesboolean

Include image results

Pricing

$0.05per search
No subscriptionExact cost in every responseUses your developer balance