Search and places
Brave AI Mode API
Retrieve a Brave AI Mode answer and its sources. Send a new query with next_page_token to continue the conversation, keeping localization settings unchanged. Public proof and AI streaming can require up to 40 seconds on CPU-constrained runtimes.
Make a request
Use your existing PrismCrawl API key and credit balance. A completed request consumes one credit, including recognized empty or unavailable results and source changes found during a valid continuation. Validation and operational errors remain uncharged. Each completed continuation request is billed separately.
curl 'https://api.prismcrawl.com/v1/brave/ai-mode' \
--request POST \
--header 'content-type: application/json' \
--header 'x-api-key: <PRISMCRAWL_API_KEY>' \
--data '{
"query": "What is coffee?"
}'Supported parameters
| Parameter | Usage |
|---|---|
queryRequired | Text to search for on the selected service. |
device | Device presentation for the source request. desktop, mobile, tablet |
html | Return the encoded original response rather than parsed JSON. |
zero_trace | Do not archive source or parsed response artifacts. |
country | Two-letter country or storefront code, such as us or gb. ar, au, at, be, br, ca, cl, cn, dk, fi, fr, de, gr, hk, in, id, it, jp, kr, my, mx, nl, nz, no, pl, pt, ph, ru, sa, sg, za, es, se, ch, tw, tr, gb, us |
language | Provider-supported language code, such as en. az, bg, br, ca, cs, cy, da, de, el, en, es, et, eu, fi, fr, gl, hr, hu, id, it, ja, ka, ko, lt, lv, ms, nb, nl, pl, pt, ro, ru, sk, sl, sq, sr, sv, sw, th, tr, uk, vi, zh |
coordinates | Latitude and longitude for location targeting. |
safe | Provider safe-search filtering. off, moderate, strict |
units_of_measurement | Metric or US customary units in the answer. metric, us |
next_page_token | Copy the opaque next_page_token from the previous response using the same account, search parameters, device, and result limit. Tokens expire after one hour; restart pagination if rejected or expired. |
location | Named geographic search origin; mutually exclusive with coordinates. Resend the same name when continuing a conversation. |
Structured results
Read items from data.content.results. The response also includes the search metadata, pagination state, and any extracted SERP features. Optional fields appear when supplied by the provider.
addressanswercategorycoordinatesdescriptionidlatitudelongitudenamephonepositionrankratingrating_maxrating_sourcereview_countsnippetsourcesthumbnailtitletypeurlwebsitefollowup_questionsContinue with data.content.next_page_token when has_next_page is true. Omit page when using a token and keep the other request parameters unchanged, including the query or ID, country, language, device, result limit, and sort order. Stop when no token is returned. Tokens belong to the same account and expire after one hour. Restart pagination if a token is expired or rejected, including tokens issued before authenticated tokens were introduced. If the source inventory changes after a valid continuation is fetched, a completed HTTP 200 response costs one credit and marks pagination_limited: true with pagination_reason: stale_cursor. Keep any returned results and restart pagination; no continuation token is returned.
SDKs and guides
The official SDKs cover this endpoint with typed parameters, automatic retries, and pagination helpers.
- Python SDK:
pip install prismcrawl - Node.js SDK:
npm install prismcrawl