SerpBase

API 레퍼런스 · 검색 엔진

Google AI Mode

Google's AI Mode answer to a question, as plain text and as Markdown with its headings, lists and tables, plus the pages it cites with their real URLs.

POSThttps://api.serpbase.dev/google/ai_mode
3 크레딧Playground에서 실행

예시

BASH
curl -X POST 'https://api.serpbase.dev/google/ai_mode' \
  -H "Content-Type: application/json" \
  -H 'X-API-Key: YOUR_API_KEY' \
  --max-time 60 \
  -d '{"gl":"us","hl":"en","q":"how does a heat pump work"}'

이 엔드포인트의 실제 응답 예시는 아직 없습니다. Playground에서 예시를 실행해 실제 응답을 확인하세요.

매개변수

format
"json" | "markdown"
json(기본값)은 파싱된 결과, markdown은 같은 결과를 언어 모델용 Markdown 텍스트(text/markdown)로 반환합니다.
더 보기

크레딧은 같고 실패 시 JSON 봉투가 반환됩니다.

gl
string
예: "us"
hl
string
예: "en"
q
string
예: "how does a heat pump work"

예시는 전체 요청 계약이 아닙니다. 알려진 필드는 검증되며 추가 매개변수는 허용됩니다.

반환 필드

필드는 위 응답 예시와 같으며 모든 엔드포인트에 status, credits_charged, request_id가 포함됩니다.

실패할 때

실패한 요청은 status가 0이 아니고 error가 있으며 과금되지 않습니다. 자주 보이는 것:

1000매개변수 누락 또는 오류요청 수정
1020크레딧 부족충전
1029초당 요청 수 초과Retry-After초 대기
1502 · 1504이번에는 원본을 읽지 못함재시도
모든 상태 코드 →