Get Google AI Mode answer
litescrape.google.serp.ai_modeReturns the answer Google AI Mode generates for a question, as ordered text blocks, with the sources it cited
- Price
- $0.00015/success제공업체 원가
- Success rate
- 50.6%Last 30 days · 1,745 calls
- Latency p50
- 8.5 sp95 34 s
- Last verified
- 2026. 9. 29.Verified working
GEThttps://toolswitch.dev/v1/tools/litescrape.google.serp.ai_mode?q=what+is+photosynthesis&gl=us&hl=enPreview- Uses platform quota
- Synchronous response
- Reads public data
파라미터
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 쿼리 파라미터 | ||||
q | 문자열 | 필수 | Question to ask, up to 2,048 characters. Required on every turn, including follow-ups. | what is the best espresso machine for a small kitchen |
gl | 문자열 | 선택 | Two-letter country code used to localize results. | us |
hl | 문자열 | 선택 | Language code such as en, en-GB, or de. | en |
uule | 문자열 | 선택 | Pre-encoded Google location token. Mutually exclusive with location. | |
device | 문자열 | 선택 | Google device layout. Each device is served Google's real layout for it. | |
timeout | 숫자 | 선택 | Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline. | |
location | 문자열 | 선택 | Human-readable search location, such as Austin, Texas. At most 63 UTF-8 bytes. Mutually exclusive with uule. | Austin, Texas |
image_url | 문자열 | 선택 | Public http or https URL of an image to include in the question, up to 2,048 characters. The image may be at most 20 MB. Cannot be combined with subsequent_request_token. | |
continuable | 불리언 | 선택 | Return a subsequent_request_token so this answer can be followed up, when Google offers a continuation. | |
google_domain | 문자열 | 선택 | Google domain used for the request. | google.com |
subsequent_request_token | 문자열 | 선택 | Token from a previous continuable response. Send it with a new q to continue that conversation; reuse the same gl, hl and location. Expires after 30 minutes. Cannot be combined with image_url. | |
- 쿼리 파라미터
q문자열필수Question to ask, up to 2,048 characters. Required on every turn, including follow-ups.
예시:
what is the best espresso machine for a small kitchengl문자열선택Two-letter country code used to localize results.
예시:
ushl문자열선택Language code such as en, en-GB, or de.
예시:
enuule문자열선택Pre-encoded Google location token. Mutually exclusive with location.
device문자열선택Google device layout. Each device is served Google's real layout for it.
timeout숫자선택Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true and a request ID. Omit to retain the standard server deadline.
location문자열선택Human-readable search location, such as Austin, Texas. At most 63 UTF-8 bytes. Mutually exclusive with uule.
예시:
Austin, Texasimage_url문자열선택Public http or https URL of an image to include in the question, up to 2,048 characters. The image may be at most 20 MB. Cannot be combined with subsequent_request_token.
continuable불리언선택Return a subsequent_request_token so this answer can be followed up, when Google offers a continuation.
google_domain문자열선택Google domain used for the request.
예시:
google.comsubsequent_request_token문자열선택Token from a previous continuable response. Send it with a new q to continue that conversation; reuse the same gl, hl and location. Expires after 30 minutes. Cannot be combined with image_url.
코드 예제
$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.
curl -X GET 'https://toolswitch.dev/v1/tools/litescrape.google.serp.ai_mode?q=what+is+photosynthesis&gl=us&hl=en' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/litescrape.google.serp.ai_mode?q=what+is+photosynthesis&gl=us&hl=en",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/litescrape.google.serp.ai_mode?q=what+is+photosynthesis&gl=us&hl=en", {
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.00015/success이며 서비스 수수료가 포함되어 있습니다.