querystring必須
The search query.
https://api.sandbase.ai/v1/api/tavily/searchAI-optimized web search for agents and RAG: ranked results with titles, URLs and relevant content, depth control, news and finance topics, domain filters and an optional generated answer.
[
{
"answer": null,
"follow_up_questions": null,
"images": [],
"query": "手性钙钛矿 圆偏振拉曼 手性声子 谱学",
"request_id": "fe5b9736-01fb-42b2-9b8b-a39592ae7002",
"response_time": 0.81,
"results": [
{
"content": "文章概述: 近日,北京师范大学的张文凯教授团队以R/S-α-甲基苄胺(R/S-MBA)为手性配体制备了手性钙钛矿(R/S-MBA)2PbI4,并以外消旋体钙钛矿(Rac-MBA)2PbI4为对照,结合圆偏振瞬态吸收(circularly polarized transient absorption, CTA)光谱、泵浦光强依赖和温度依赖实验,深入探究了手性钙钛矿激子自旋弛豫时间延长的物理机制。研究发现,手性钙钛矿相较外消旋体展现出更高的初始自旋极化率:(手性钙钛矿(R/S-MBA)2PbI4为11.3%/11.6%,外消旋体(Rac-MBA)2PbI4仅6.9%)和显著延长的自旋弛豫寿命(手性钙钛矿可达427/497 ps,外消旋体仅22 [...] 文章概述: 近日,北京师范大学的张文凯教授团队以R/S-α-甲基苄胺(R/S-MBA)为手性配体制备了手性钙钛矿(R/S-MBA)2PbI4,并以外消旋体钙钛矿(Rac-MBA)2PbI4为对照,结合圆偏振瞬态吸收(circularly polarized transient absorption, CTA)光谱、泵浦光强依赖和温度依赖实验,深入探究了手性钙钛矿激子自旋弛豫时间延长的物理机制。研究发现,手性钙钛矿相较外消旋体展现出更高的初始自旋极化率:(手性钙钛矿(R/S-MBA)2PbI4为11.3%/11.6%,外消旋体(Ra…",
"id": "4f61ca-00",
"raw_content": null,
"score": 0.7004242,
"title": "AOM | 北京师范大学张文凯团队:晶格手性通过增强激子-声子耦合延长二维钙钛矿中激子的退极化时间—论文—科学网",
"url": "https://news.sciencenet.cn/htmlpaper/2026/8/2026817101520646154394.shtm"
},
{
"content": "将手性有机阳离子引入到钙钛矿量子阱中,赋予了二维钙钛矿本征手性,使钙钛矿圆偏振光探测成为了可能。然而,二维钙钛矿的强电子-声子耦合,导致材料的",
"id": "52ea47-01",
"raw_content": null,
"score": 0.6350646,
"title": "袁明鉴课题组:手性准二维钙钛矿圆偏振光电探测器 - 南开大学化学学院",
"url": "https://chem.nankai.edu.cn/2020/0301/c24075a359161/page.htm"
},
{
"content": "手性声子(chiral phonon)是携带角动量的晶格集体振动模式。当原子位移在一个振动周期内沿椭圆(包括圆)轨迹运动时,声子具有非零的声子角动量L_ph != 0",
"id": "ab16cf-02",
"raw_content": null,
"score": 0.5463757,
"title": "手性声子的非弹性中子散射诊断偏振态、手性方向与声子磁矩",
"url": "https://developer.cloud.tencent.com/article/2723167"
},
"… 5 more items in the full response"
]
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
Web search built for LLM agents and RAG. Each result comes back with a title, URL, the most relevant content snippet and a relevance score, so you can pass results straight to a model. Use the boolean include_answer and include_raw_content options to request additional content; inspect the returned fields before relying on them.
topic; this variant does not expose a time-range parameter.curl -X POST "https://api.sandbase.ai/v1/api/tavily/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "OpenAI Codex documentation", "max_results": 3}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | The search query. |
exclude_domains | array | No | Exclude results from these domains. |
include_answer | boolean | No | Include an LLM-generated answer summarizing the results. |
include_domains | array | No | Only include results from these domains. |
include_raw_content | boolean | No | Include the full raw page content for each result. |
max_results | integer | No | Maximum number of results to return. |
search_depth | string | No | Depth of search. 'advanced' returns more comprehensive results. |
topic | string | No | Topic category to focus the search. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"answer": null,
"follow_up_questions": null,
"images": [],
"query": "OpenAI Codex documentation",
"request_id": "9a4efa6f-8022-44af-a4c1-a1633319ea49",
"response_time": 0.99,
"results": [
{
"content": "[52:01] So before we wrap up, I just want to share a few additional resources. s…",
"id": "a3a4d2-00",
"raw_content": null,
"score": 0.81665546,
"title": "Getting started with Codex",
"url": "https://www.youtube.com/watch?v=px7XlbYgk7I"
}
],
"usage": {
"credits": 1
}
}
| Field | Meaning |
|---|---|
results[] | Ranked results: title, url, content (relevant excerpt), score (0-1 relevance) and raw_content when include_raw_content is set. |
answer | Generated answer when include_answer is true, otherwise null. |
images | Present in the reference sample; this Search variant has no include_images input. |
response_time | Upstream time in seconds. |
search_depth: "advanced" searches more deeply and is slower; the default basic fits most agent calls.include_domains / exclude_domains to restrict sources and max_results (up to 20) to bound the answer size.Set include_domains or exclude_domains to an array of domain names, such as ["openai.com"]. The JSON keys do not include an [] suffix. In this SandBase variant, include_answer and include_raw_content are booleans; search_depth accepts basic or advanced, and topic accepts general, news or finance. Do not copy additional upstream parameters into this request unless they appear in its current schema. Domain filters control the requested sources, not the truth of their content. max_results bounds the requested result count; it does not guarantee that count.
Start with the Python domain-filter example and read the documented outputs[0].data envelope. The example makes one Search request and prints payload keys. If you already have a page URL, see the separate Extract request. It does not automatically extract the first search result.
Only send fields listed in this variant's Parameters schema.
$0.008 per successful call with search_depth: "basic" (the default) and $0.016 with "advanced". With auto_parameters: true and no search_depth, the charge follows the depth Tavily picked (shown in auto_parameters.search_depth); the estimate assumes advanced. This is the same as Tavily's pay-as-you-go price of $0.008 per credit (1 credit for basic, 2 for advanced; tavily.com, checked 2026-11-22 UTC). Failed calls are not charged. It is not part of the daily free quota, because its price varies with the request.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/tavily/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "手性钙钛矿 圆偏振拉曼 手性声子 谱学",
"topic": "general",
"max_results": 8,
"search_depth": "basic",
"include_answer": true,
"include_domains": [
"openai.com"
],
"include_raw_content": false
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
querystring必須The search query.
search_depthstringDepth of search. 'advanced' returns more comprehensive results.
デフォルト: "basic"
指定可能な値: basic, advanced
max_resultsintegerMaximum number of results to return.
デフォルト: 5
topicstringTopic category to focus the search.
デフォルト: "general"
指定可能な値: general, news, finance
include_answerbooleanInclude an LLM-generated answer summarizing the results.
デフォルト: false
include_raw_contentbooleanInclude the full raw page content for each result.
デフォルト: false
include_domainsarrayOnly include results from these domains.
exclude_domainsarrayExclude results from these domains.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"answer": null,
"follow_up_questions": null,
"images": [],
"query": "手性钙钛矿 圆偏振拉曼 手性声子 谱学",
"request_id": "fe5b9736-01fb-42b2-9b8b-a39592ae7002",
"response_time": 0.81,
"results": [
{
"content": "文章概述: 近日,北京师范大学的张文凯教授团队以R/S-α-甲基苄胺(R/S-MBA)为手性配体制备了手性钙钛矿(R/S-MBA)2PbI4,并以外消旋体钙钛矿(Rac-MBA)2PbI4为对照,结合圆偏振瞬态吸收(circularly polarized transient absorption, CTA)光谱、泵浦光强依赖和温度依赖实验,深入探究了手性钙钛矿激子自旋弛豫时间延长的物理机制。研究发现,手性钙钛矿相较外消旋体展现出更高的初始自旋极化率:(手性钙钛矿(R/S-MBA)2PbI4为11.3%/11.6%,外消旋体(Rac-MBA)2PbI4仅6.9%)和显著延长的自旋弛豫寿命(手性钙钛矿可达427/497 ps,外消旋体仅22 [...] 文章概述: 近日,北京师范大学的张文凯教授团队以R/S-α-甲基苄胺(R/S-MBA)为手性配体制备了手性钙钛矿(R/S-MBA)2PbI4,并以外消旋体钙钛矿(Rac-MBA)2PbI4为对照,结合圆偏振瞬态吸收(circularly polarized transient absorption, CTA)光谱、泵浦光强依赖和温度依赖实验,深入探究了手性钙钛矿激子自旋弛豫时间延长的物理机制。研究发现,手性钙钛矿相较外消旋体展现出更高的初始自旋极化率:(手性钙钛矿(R/S-MBA)2PbI4为11.3%/11.6%,外消旋体(Ra…",
"id": "4f61ca-00",
"raw_content": null,
"score": 0.7004242,
"title": "AOM | 北京师范大学张文凯团队:晶格手性通过增强激子-声子耦合延长二维钙钛矿中激子的退极化时间—论文—科学网",
"url": "https://news.sciencenet.cn/htmlpaper/2026/8/2026817101520646154394.shtm"
},
{
"content": "将手性有机阳离子引入到钙钛矿量子阱中,赋予了二维钙钛矿本征手性,使钙钛矿圆偏振光探测成为了可能。然而,二维钙钛矿的强电子-声子耦合,导致材料的",
"id": "52ea47-01",
"raw_content": null,
"score": 0.6350646,
"title": "袁明鉴课题组:手性准二维钙钛矿圆偏振光电探测器 - 南开大学化学学院",
"url": "https://chem.nankai.edu.cn/2020/0301/c24075a359161/page.htm"
},
{
"content": "手性声子(chiral phonon)是携带角动量的晶格集体振动模式。当原子位移在一个振动周期内沿椭圆(包括圆)轨迹运动时,声子具有非零的声子角动量L_ph != 0",
"id": "ab16cf-02",
"raw_content": null,
"score": 0.5463757,
"title": "手性声子的非弹性中子散射诊断偏振态、手性方向与声子磁矩",
"url": "https://developer.cloud.tencent.com/article/2723167"
},
"… 5 more items in the full response"
]
}
]さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Tavily Searchこの API Tavily | 1回あたり $0.008 から | JSON |
Tavily | 1回あたり $0.0016 から | JSON |
Tavily | 1回あたり $0.04 から | JSON |
ガイド:Tavily alternatives: compare Exa and Firecrawl searchExa vs Tavily vs Firecrawl for AI agents
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tavily/search に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.008 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: query (string)。 任意: search_depth(basic, advanced のいずれか), max_results (integer), topic(general, news, finance のいずれか), include_answer (boolean), include_raw_content (boolean) と include_domains (array) と他 1 件。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Tavily Search は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Tavily の API アクセスを別途申請する必要はありません。
include_domains または exclude_domains に、["openai.com"] のような配列値を使用してください。これらの JSON キーに [] の接尾辞はありません。ドメインフィルタリングは要求したソースを絞り込みますが、主張を検証したり、特定の結果件数を保証したりするものではありません。
はい。この SandBase 版では include_answer と include_raw_content がブール値として定義されています。 search_depth は basic または advanced を受け付け、topic は general、news、finance を受け付けます。このエンドポイントの現在のスキーマにない upstream 専用フィールドや文字列モードは追加しないでください。
検索は、クエリがあり候補ソースが必要なときに呼び出してください。すでに選んだURLには Extract を使います。これらは別々のリクエストです。この例では、最初の結果を選択したり、自動で抽出したり、検証済みのリサーチ回答を生成したりはしません。