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/callZum Anbieterpreis
- Success rate
- 73,3 %Last 30 days · 333 calls
- Latency p50
- 237 msp95 1.2 s
- Last verified
- 28.07.2026Verified working
GEThttps://toolswitch.dev/v1/tools/diffbot.x.web-search?size=3&text=knowledge+graph+AIPreviewTry onlineDemnächstProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameter
llm.diffbot.com requires Bearer authorization instead of Diffbot's usual query token; the approved catalog target applies that profile
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Abfrageparameter | ||||
size | Ganzzahl | Optional | number of results to return | 10 |
text | Zeichenkette | Erforderlich | the search query | knowledge graph AI |
maxTokens | Ganzzahl | Optional | caps the search response to this token budget; highlight chunks are reduced equitably | |
- Abfrageparameter
sizeGanzzahlOptionalnumber of results to return
Beispiel:
10textZeichenketteErforderlichthe search query
Beispiel:
knowledge graph AImaxTokensGanzzahlOptionalcaps the search response to this token budget; highlight chunks are reduced equitably
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
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());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit $0.001196/call einschließlich Servicegebühr abgerechnet.