Fetch page content
keenable.web.fetchFetch an indexed or live webpage as Markdown, optionally reduced by an extraction instruction.
- Price
- $0.004/callAu prix du fournisseur
- Success rate
- 18,4 %Last 30 days · 4 841 calls
- Latency p50
- 356 msp95 7.7 s
- Last verified
- 23 sept. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/keenable.web.fetch?url=https%3A%2F%2Fdocs.keenable.ai%2F&live=false&max_chars=500Preview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
The live response returned published_at as a Unix timestamp even though the OpenAPI schema says string; treg relays the provider value unchanged.
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
url | chaîne | Obligatoire | https://docs.keenable.ai/ | |
live | booléen | Facultatif | Fetch directly from the source instead of using the indexed copy; also supports URLs absent from the index. | false |
prompt | chaîne | Facultatif | Return only the extraction requested here instead of the full page. | List the API endpoints. |
max_chars | entier | Facultatif | Longer content is truncated and a notice is appended after the cut. | 5000 |
- Paramètres de requête
urlchaîneObligatoireExemple :
https://docs.keenable.ai/livebooléenFacultatifFetch directly from the source instead of using the indexed copy; also supports URLs absent from the index.
Exemple :
falsepromptchaîneFacultatifReturn only the extraction requested here instead of the full page.
Exemple :
List the API endpoints.max_charsentierFacultatifLonger content is truncated and a notice is appended after the cut.
Exemple :
5000
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X GET 'https://toolswitch.dev/v1/tools/keenable.web.fetch?url=https%3A%2F%2Fdocs.keenable.ai%2F&live=false&max_chars=500' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/keenable.web.fetch?url=https%3A%2F%2Fdocs.keenable.ai%2F&live=false&max_chars=500",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/keenable.web.fetch?url=https%3A%2F%2Fdocs.keenable.ai%2F&live=false&max_chars=500", {
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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.004/call, frais de service inclus.