Answer
Google AI Mode에 질문하고 답변을 받습니다. 인용, 출처, 카드, 언급이 함께 옵니다.
POST /v1/google-ai-mode/answer입력은 JSON 본문으로 보냅니다. 답변에는 몇 초가 걸리므로 최대 120초까지 기다리세요.
요청
curl -X POST "https://gateway.apinoa.com/v1/google-ai-mode/answer" \
-H "x-api-key: $APINOA_API_KEY" \
-H "content-type: application/json" \
-d '{"prompt": "What are the best running shoes for beginners?"}'파라미터
| 파라미터 | 타입 | 필수 | 설명 |
|---|---|---|---|
prompt | string | 예 | The question, as a person would type it. |
conversation | string | An earlier answer's conversation.id: ask a follow-up in the same conversation. | |
country | string | The market the answer is asked from, as an ISO 3166 country code. Each engine's page lists its countries. | |
include | enum list | page: also return the answer as a self-contained HTML page, in page. | |
language | string | The language to answer in, as a language tag (en, ko-KR). |
같은 파라미터와 모든 응답 타입은 OpenAPI 문서에도 있습니다.
응답
data에 Answer를 돌려줍니다. 실제 응답을 줄인 것입니다. 배열은 앞쪽 항목만 남기고 긴 텍스트는 잘랐습니다.
{
"success": true,
"data": {
"engine": "google-ai-mode",
"prompt": "What are the best running shoes for beginners?",
"askedAt": "2026-10-30T01:03:14.053Z",
"country": "US",
"outcome": "answered",
"title": "Best Running Shoes for Beginners",
"blocks": [
{
"type": "paragraph",
"markdown": "Choosing the right running shoes as a beginner comes down to finding a protective, comfortable **daily trainer** that offers a balanced mix of stability and sho…"
},
{"type": "heading", "level": 3, "markdown": "Top Running Shoes for Beginners"},
{"type": "cards", "cards": [0]}
],
"text": "Choosing the right running shoes as a beginner comes down to finding a protective, comfortable daily trainer that offers a balanced mix of stability and shock a…",
"markdown": "Choosing the right running shoes as a beginner comes down to finding a protective, comfortable **daily trainer** that offers a balanced mix of stability and sho…",
"citations": [{"start": 171, "end": 282, "sources": [0, 1]}, {"start": 317, "end": 408, "sources": [3]}],
"sources": [
{
"url": "https://www.reddit.com/r/AskRunningShoeGeeks/comments/1ngm9bj/advice_on_daily_runners_for_beginner_should_i/",
"title": "Advice on daily runners for beginner - should i listen less to you guys?",
"site": "Reddit",
"favicon": "https://encrypted-tbn2.gstatic.com/faviconV2?url=https://www.reddit.com&client=AIM&size=128&type=FAVICON&fallback_opts=TYPE,SIZE,URL",
"snippet": "The Saucony Triumph is frequently suggested as a suitable cushioned daily trainer for beginners, with having less cushion than the...",
"cited": true,
"ext": {"origin": "https://www.reddit.com"}
},
{
"url": "https://www.google.com/search?q=product&prds=pvt:hg,pvo:29,productid:5825792439568125735,catalogid:10929777223096081606,gpcid:5310959131376330242,mid:5764628895…",
"title": "ASICS Men's Gel-Nimbus 28",
"site": "Google",
"favicon": "https://encrypted-tbn1.gstatic.com/faviconV2?url=https://www.google.com&client=AIM&size=128&type=FAVICON&fallback_opts=TYPE,SIZE,URL",
"snippet": "The Gel-Nimbus 28 is a refined max-cushion daily neutral shoe. It's 7% lighter than the Nimbus 27, with a 43.5 / 35.5 mm stack. Th...",
"cited": true,
"ext": {"origin": "https://www.google.com"}
}
],
"cards": [
{
"type": "product",
"title": "ASICS Men's Novablast 6",
"url": "https://www.google.com/search?ibp=oshop&prds=pvt:a,pvo:29,mid:576462896392334029,imageDocid:13241215194731966452,gpcid:5626042281368975415,headlineOfferDocid:24…",
"image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABA…",
"price": {"text": "$155.00", "amount": 155, "currency": "USD"},
"rating": 4.66,
"reviews": 1546,
"merchant": "ASICS",
"sponsored": false,
"ext": {
"productId": "7161459321851462405",
"catalogId": "8790407336806612921",
"offerId": "2453831124051266496",
"merchantId": "576462896392334029",
"moreMerchants": true,
"reviewsShown": "1.5K",
"merchantUrl": "http://www.asics.com/us/",
"delivery": {"from": "2026-11-03", "to": "2026-11-09"}
}
},
{
"type": "product",
"title": "Brooks Men's Ghost 18",
"url": "https://www.google.com/search?ibp=oshop&prds=pvt:a,pvo:29,mid:576462236222818190,imageDocid:7301987987080420790,gpcid:7326703641027475137,headlineOfferDocid:214…",
"image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABA…",
"price": {"text": "$150.00", "amount": 150, "currency": "USD"},
"rating": 4.53,
"reviews": 674,
"merchant": "Brooks Running",
"sponsored": false,
"ext": {
"productId": "2256397734681246202",
"catalogId": "12711205400595365682",
"offerId": "2148487881347949421",
"merchantId": "576462236222818190",
"moreMerchants": true,
"merchantUrl": "https://www.BrooksRunning.com",
"delivery": {"from": "2026-10-28", "to": "2026-10-30"}
}
}
],
"mentions": [
{"name": "ASICS Novablast 6", "kind": "product", "at": 1767, "card": 4},
{"name": "Brooks Ghost 18", "kind": "product", "at": 1870, "card": 5}
],
"suggestions": [],
"conversation": {"id": "c_0nTtfHpv8jl7f55V-cg1Yg", "turn": 1, "expiresAt": "2026-10-30T01:33:16.375Z"}
}
}에러
| 상태 | 코드 | 의미 |
|---|---|---|
| 400 | INVALID_PARAMS | 파라미터가 없거나, 알 수 없거나, 범위를 벗어났거나, 이 엔진이 받지 않는 값입니다. 메시지에 이름이 나옵니다. |
| 401 | UNAUTHORIZED | x-api-key 헤더가 없거나, 폐기되었거나 알 수 없는 키입니다. |
| 402 | INSUFFICIENT_BALANCE | 잔액이 이 호출 비용에 모자랍니다. 대시보드에서 충전하세요. |
| 429 | MARKETPLACE_SATURATED | 동시 호출이 너무 많습니다. Retry-After 초만큼 기다린 뒤 다시 시도하세요. |
| 502 | UPSTREAM_ERROR | 엔진이 쓸 수 없는 응답을 보냈습니다. 간격을 두고 다시 시도하세요. |
| 502 | UPSTREAM_TIMEOUT | 엔진이 제때 답하지 않았습니다. 다시 시도하세요. |
| 503 | SERVICE_UNAVAILABLE | 일시적인 장애입니다. 간격을 두고 다시 시도하세요. |
모든 코드는 Errors에 있습니다. 실패한 호출은 과금되지 않습니다.
가격
가격 호출당 $0.0012. 정가 기준이며, 하루 1,000회를 넘으면 단가가 내려갑니다.
참고
- 이어서 질문하려면 답변의
conversation.id를conversation으로 넘깁니다. language로 답변 언어를 정합니다.