Web search shaped for an LLM context window
diffbot.x.web-searchSearch the web and return results shaped for feeding into an LLM context window
- Price
- $0.001196/callプロバイダー原価
- Success rate
- 73.3%Last 30 days · 333 calls
- Latency p50
- 237 msp95 1.2 s
- Last verified
- 2026/07/28Verified working
GEThttps://toolswitch.dev/v1/tools/diffbot.x.web-search?size=3&text=knowledge+graph+AIPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
llm.diffbot.com requires Bearer authorization instead of Diffbot's usual query token; the approved catalog target applies that profile
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
size | 整数 | 任意 | number of results to return | 10 |
text | 文字列 | 必須 | the search query | knowledge graph AI |
maxTokens | 整数 | 任意 | caps the search response to this token budget; highlight chunks are reduced equitably | |
- クエリパラメータ
size整数任意number of results to return
例:
10text文字列必須the search query
例:
knowledge graph AImaxTokens整数任意caps the search response to this token budget; highlight chunks are reduced equitably
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/diffbot.x.web-search?size=3&text=knowledge+graph+AI' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/diffbot.x.web-search?size=3&text=knowledge+graph+AI",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/diffbot.x.web-search?size=3&text=knowledge+graph+AI", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.001196/call です。サービス料を含みます。