Answer a question from the web, prose or JSON
crawl4ai.web.answerAnswers a question or a whole agent prompt (up to 4,000 characters) from the web's current top results, with the pages it drew on. Ask for JSON in the question, or pass a JSON Schema, and the answer is JSON of that shape. answer.source says whether the text is Google's own answer (google_ai_mode, google_ai_overview) or written from the pages (crawl4ai). answered is false, and free, when the pages hold no answer. Experimental: fields may be added.
- Price
- $0.00215/success제공업체 원가
- Success rate
- 97.7%Last 30 days · 2,074 calls
- Latency p50
- 4.9 sp95 11 s
- Last verified
- 2026. 10. 7.Verified working
GEThttps://toolswitch.dev/v1/tools/crawl4ai.web.answer?q=who+founded+stripePreview- Uses platform quota
- Synchronous response
- Reads public data
파라미터
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 쿼리 파라미터 | ||||
q | 문자열 | 필수 | the question or prompt, up to 4,000 characters; say the shape you want inside it, e.g. 'answer with JSON only: {...}' | who founded stripe |
gl | 문자열 | 선택 | search country, e.g. us | |
hl | 문자열 | 선택 | search language, e.g. en | |
deep | 정수 | 선택 | 1 reads pages and writes an answer when the web has none; 0 returns only the web's own direct answer, else answered false | |
schema | 문자열 | 선택 | a JSON Schema object as a JSON string, up to 4,000 bytes; the answer is then JSON of exactly that shape (parse answer.text) | |
nocache | 정수 | 선택 | 1 skips every cache | |
- 쿼리 파라미터
q문자열필수the question or prompt, up to 4,000 characters; say the shape you want inside it, e.g. 'answer with JSON only: {...}'
예시:
who founded stripegl문자열선택search country, e.g. us
hl문자열선택search language, e.g. en
deep정수선택1 reads pages and writes an answer when the web has none; 0 returns only the web's own direct answer, else answered false
schema문자열선택a JSON Schema object as a JSON string, up to 4,000 bytes; the answer is then JSON of exactly that shape (parse answer.text)
nocache정수선택1 skips every cache
코드 예제
$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.
curl -X GET 'https://toolswitch.dev/v1/tools/crawl4ai.web.answer?q=who+founded+stripe' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/crawl4ai.web.answer?q=who+founded+stripe",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/crawl4ai.web.answer?q=who+founded+stripe", {
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.00215/success이며 서비스 수수료가 포함되어 있습니다.