qstring필수
The user’s search query term. Query can not be empty. Maximum of 600 characters and 75 words in the query.
https://api.sandbase.ai/v1/api/brave/webWeb Search from Brave. Returns the official Brave API response unchanged.
출력이 여기에 표시됩니다
입력을 완료한 다음 Run을 클릭하세요.
Returns Brave web search results for a text query. The only required input is q. The response holds web results, news, FAQ entries, query details and a rich result hint, all in the original Brave format.
news.results list.query.related_queries to find related searches for keyword research.rich callback hint to fetch live data such as weather for a location query.curl -X POST "https://api.sandbase.ai/v1/api/brave/web" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q": "weather seattle", "enable_rich_callback": true}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
q | string | Yes | The user’s search query term. Query can not be empty. Maximum of 600 characters and 75 words in the query. |
count | integer | No | The number of search results returned in response. The maximum is 20. The actual number delivered may be less than requested. Combine this parameter with offset to paginate search results. NOTE: Count only applies to web |
country | string | No | The 2 character country code where the search results come from. |
enable_rich_callback | boolean | No | Enable rich callback. Allows you to get real time rich results via a callback URL when they are relevant to your query. NOTE : Requires Search plan. |
extra_snippets | boolean | No | A snippet is an excerpt from a page you get as a result of the query, and extra_snippets allow you to get up to 5 additional, alternative excerpts. |
freshness | string | No | Filters search results by page age. The age of a page is determined by the most relevant date reported by the content, such as its published or last modified date. The following values are supported: pd - Pages aged 24 h |
goggles | string | No | Goggles act as a custom re-ranking on top of Brave’s search index. The parameter supports both a url where the Goggle is hosted or the definition of the Goggle. For more details, see the Goggles documentation . The param |
goggles_id | string | No | Goggles act as a custom re-ranking on top of Brave’s search index. For more details, refer to the Goggles repository. This parameter is deprecated. Please use the goggles parameter. |
include_fetch_metadata | boolean | No | Include fetch metadata. |
offset | integer | No | The zero based offset that indicates number of search result pages (count) to skip before returning the result. The default is 0 and the maximum is 9. The actual number delivered may be less than requested. Use this para |
operators | boolean | No | Whether to apply search operators |
result_filter | array | No | A comma delimited string of result types to include in the search response. Not specifying this parameter will return back all result types in search response where data is available and the plan has the corresponding op |
safesearch | string | No | Filters search results for adult content. The following values are supported: off - No filtering is done. moderate - Filters explicit content, like images and videos, but allows adult domains in the search results. stric |
search_lang | string | No | The 2 or more character language code for which the search results are provided. |
spellcheck | boolean | No | Whether to spell check provided query. If the spell checker is enabled, the modified query is always used for search. The modified query can be found in altered key from the query response model. |
summary | boolean | No | This parameter enables summary key generation in web search results. This is required for summarizer to be enabled. |
text_decorations | boolean | No | Whether display strings (e.g. result snippets) should include decoration markers (e.g. highlighting characters). |
ui_lang | string | No | User interface language preferred in response. Usually of the format <language_code>-<country_code>. For more, see RFC 9110 . |
units | string | No | The measurement units. The following values are supported: metric - The standardized measurement system (km, celcius…) imperial - The British Imperial system of units (mile, fahrenheit…) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"faq": {
"results": [
{
"answer": "No",
"meta_url": {
"favicon": "https://imgs.search.brave.com/PngeKo7zbzNt-2zCSn559wzst7VixpZEDNgaxIMzo-E/rs:fit…",
"hostname": "www.theweathernetwork.com",
"netloc": "theweathernetwork.com",
"path": "› en › city › us › washington › seattle › current",
"scheme": "https"
},
"question": "Are there any active weather alerts in Seattle?",
"title": "Seattle, WA Current Weather - The Weather Network",
"url": "https://www.theweathernetwork.com/en/city/us/washington/seattle/current"
}
],
"type": "faq"
},
"mixed": {
"main": [
{
"all": false,
"index": 0,
"type": "rich"
}
],
"side": [],
"top": [],
"type": "mixed"
},
"news": {
"mutated_by_goggles": false,
"results": [
{
"age": "17 hours ago",
"breaking": false,
"description": "<strong>Seattle</strong> residents can also expect frigid temperatures stretchin…",
"family_friendly": true,
"fetched_content_timestamp": 1738268522,
"is_live": false,
"is_source_both": false,
"is_source_local": false,
"meta_url": {
"favicon": "https://imgs.search.brave.com/fPoxYqQRrihSomdk0s9DwKe7SuN5tuntzBVqJ943XF8/rs:fit…",
"hostname": "www.seattletimes.com",
"netloc": "seattletimes.com",
"path": "› seattle-news › weather › seattle-weather-chilly-foggy-fall-days-followed-by-…",
"scheme": "https"
},
"page_age": "2026-11-02T14:48:55",
"thumbnail": {
"original": "https://www.seattletimes.com/wp-content/themes/st_refresh/img/st-meta-facebook.p…",
"src": "https://imgs.search.brave.com/l3g2QySD_YG1ARk7Q-7uP1PWuEQvfo2KD-1tphVl8hc/rs:fit…"
},
"title": "Rain and gusty winds bookend chilly fall weather this week"
}
],
"type": "news"
},
"query": {
"bad_results": false,
"city": "",
"country": "us",
"header_country": "",
"is_geolocal": true,
"is_navigational": false,
"is_news_breaking": false,
"local_decision": "mix",
"more_results_available": true,
"original": "weather seattle",
"postal_code": "",
"related_queries": [
"seattle weather 14 day forecast"
]
},
"rich": {
"hint": {
"callback_key": "5a73af8c2c9b4eaba2424115d4459332",
"vertical": "weather"
},
"type": "rich"
},
"type": "search",
"web": {
"family_friendly": true,
"results": [
{
"age": "1 week ago",
"description": "Seattle, WA Weather Forecast, with current conditions, wind, air quality, and wh…",
"extra_snippets": [
"For Business For Partners For Advertising AccuWeather APIs AccuWeather Connect P…"
],
"family_friendly": true,
"is_live": false,
"is_source_both": false,
"is_source_local": false,
"language": "en",
"meta_url": {
"favicon": "https://imgs.search.brave.com/fs6uyhM5xA6gctiAKJTHhWtpR2YRWceKfG_9aqjmfRs/rs:fit…",
"hostname": "www.accuweather.com",
"netloc": "accuweather.com",
"path": "› en › us › seattle › 98104 › weather-forecast › 351409",
"scheme": "https"
},
"page_age": "2026-10-27T15:58:37",
"profile": {
"img": "https://imgs.search.brave.com/fs6uyhM5xA6gctiAKJTHhWtpR2YRWceKfG_9aqjmfRs/rs:fit…",
"long_name": "accuweather.com",
"name": "AccuWeather",
"url": "https://www.accuweather.com/en/us/seattle/98104/weather-forecast/351409"
},
"subtype": "generic"
}
],
"type": "search"
}
}
| Field | Meaning |
|---|---|
web.results[].title / web.results[].url | Title and link of each web result. |
web.results[].description | Short text excerpt for the result. It can contain HTML such as <strong> tags around matched words. |
web.results[].extra_snippets | Additional excerpts from the same page. It appears on some results. |
web.results[].page_age / web.results[].age | page_age is an ISO style date and time for the page. age is a readable version such as 1 week ago. |
web.results[].meta_url.hostname | Host name of the result page. meta_url also holds favicon, netloc, path and scheme. |
web.results[].location.coordinates | Latitude and longitude pair for a result tied to a place. location.postal_address holds the city, region and postal code. |
news.results[].title / news.results[].url / news.results[].description | Headline, link and excerpt for each news article. |
news.results[].fetched_content_timestamp | Numeric timestamp for when the article content was fetched. |
faq.results[].question / faq.results[].answer | A question and short answer taken from a page, with the source title and url. |
query.original / query.related_queries / query.more_results_available | The query as sent, a list of suggested related searches, and a flag showing whether more results exist. |
rich.hint.callback_key / rich.hint.vertical | Key and topic (here weather) for the rich result. Use the key to request the rich data. |
q to the search text. The count parameter sets the number of web results and offset skips pages of that size.enable_rich_callback as true to get the rich.hint object when the query has a rich result.mixed.main lists the suggested display order of result types, with an index that points into each list.callback_key. For news only, use Brave News Search.$0.005 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/brave/web" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"q": "weather seattle",
"count": 20,
"offset": 0,
"country": "US",
"ui_lang": "en-US",
"freshness": "",
"operators": true,
"safesearch": "moderate",
"spellcheck": true,
"search_lang": "en",
"text_decorations": true,
"enable_rich_callback": true,
"include_fetch_metadata": false
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
qstring필수The user’s search query term. Query can not be empty. Maximum of 600 characters and 75 words in the query.
countintegerThe number of search results returned in response. The maximum is 20. The actual number delivered may be less than requested. Combine this parameter with offset to paginate search results. NOTE: Count only applies to web results.
기본값: 20
countrystringThe 2 character country code where the search results come from.
기본값: "US"
가능한 값: AR, AU, AT, BE, BR, CA, CL, DK, FI, FR, DE, GR, HK, IN, ID, IT, JP, KR, MY, MX, NL, NZ, NO, CN, PL, PT, PH, RU, SA, ZA, ES, SE, CH, TW, TR, GB, US, ALL
enable_rich_callbackbooleanEnable rich callback. Allows you to get real time rich results via a callback URL when they are relevant to your query. NOTE : Requires Search plan.
기본값: false
extra_snippetsbooleanA snippet is an excerpt from a page you get as a result of the query, and extra_snippets allow you to get up to 5 additional, alternative excerpts.
freshnessstringFilters search results by page age. The age of a page is determined by the most relevant date reported by the content, such as its published or last modified date. The following values are supported: pd - Pages aged 24 hours or less. pw - Pages aged 7 days or less. pm - Pages aged 31 days or less. p
기본값: ""
gogglesstringGoggles act as a custom re-ranking on top of Brave’s search index. The parameter supports both a url where the Goggle is hosted or the definition of the Goggle. For more details, see the Goggles documentation . The parameter can be a single Goggle or a list of up to 3 Goggles.
goggles_idstringGoggles act as a custom re-ranking on top of Brave’s search index. For more details, refer to the Goggles repository. This parameter is deprecated. Please use the goggles parameter.
include_fetch_metadatabooleanInclude fetch metadata.
기본값: false
offsetintegerThe zero based offset that indicates number of search result pages (count) to skip before returning the result. The default is 0 and the maximum is 9. The actual number delivered may be less than requested. Use this parameter along with the count parameter to page results. For example, if your user
기본값: 0
operatorsbooleanWhether to apply search operators
기본값: true
result_filterarrayA comma delimited string of result types to include in the search response. Not specifying this parameter will return back all result types in search response where data is available and the plan has the corresponding option activated. The response always includes query and type to identify any quer
safesearchstringFilters search results for adult content. The following values are supported: off - No filtering is done. moderate - Filters explicit content, like images and videos, but allows adult domains in the search results. strict - Drops all adult content from search results.
기본값: "moderate"
가능한 값: off, moderate, strict
search_langstringThe 2 or more character language code for which the search results are provided.
기본값: "en"
가능한 값: ar, eu, bn, bg, ca, zh-hans, zh-hant, hr, cs, da, nl, en, en-gb, et, fi, fr, gl, de, el, gu, he, hi, hu, is, it, ja, jp, kn, ko, lv, lt, ms, ml, mr, nb, pl, pt-br, pt-pt, pa, ro, ru, sr, sk, sl, es, sv, ta, te, th, tr, uk, vi
spellcheckbooleanWhether to spell check provided query. If the spell checker is enabled, the modified query is always used for search. The modified query can be found in altered key from the query response model.
기본값: true
summarybooleanThis parameter enables summary key generation in web search results. This is required for summarizer to be enabled.
text_decorationsbooleanWhether display strings (e.g. result snippets) should include decoration markers (e.g. highlighting characters).
기본값: true
ui_langstringUser interface language preferred in response. Usually of the format <language_code>-<country_code>. For more, see RFC 9110 .
기본값: "en-US"
가능한 값: es-AR, en-AU, de-AT, nl-BE, fr-BE, pt-BR, en-CA, fr-CA, es-CL, da-DK, fi-FI, fr-FR, de-DE, el-GR, zh-HK, en-IN, en-ID, it-IT, ja-JP, ko-KR, en-MY, es-MX, nl-NL, en-NZ, no-NO, zh-CN, pl-PL, en-PH, ru-RU, en-ZA, es-ES, sv-SE, fr-CH, de-CH, zh-TW, tr-TR, en-GB, en-US, es-US
unitsstringThe measurement units. The following values are supported: metric - The standardized measurement system (km, celcius…) imperial - The British Imperial system of units (mile, fahrenheit…)
가능한 값: imperial, metric
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. Playground에서 API를 실행해 응답을 확인하세요.
더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Brave Web Search이 API Brave | $0.005 / 호출 | JSON |
Brave | $0.01 / 호출 | JSON |
Brave | $0.005 / 호출 | JSON |
Brave | $0.005 / 호출 | JSON |
Brave | $0.005 / 호출 | JSON |
Brave | $0.005 / 호출 | JSON |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/brave/web에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.005, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: q (string). 선택: count (integer), country(AR, AU, AT, BE, BR, CA, CL, DK, FI, FR, DE, GR, HK, IN, ID, IT, JP, KR, MY, MX, NL, NZ, NO, CN, PL, PT, PH, RU, SA, ZA, ES, SE, CH, TW, TR, GB, US, ALL 중 하나), enable_rich_callback (boolean), extra_snippets (boolean), freshness (string) 및 goggles (string) 외 12개. 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Brave Web Search은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Brave API 액세스를 별도로 신청할 필요는 없습니다.