---
title: "Answer"
description: "Meta AI에 질문하고 답변을 받습니다. 출처가 함께 옵니다."
---

> Every apinoa docs page as markdown: https://apinoa.com/llms.txt (all in one file: https://apinoa.com/llms-full.txt; this API family in one file: https://apinoa.com/docs/answers/llms.txt)

```http
POST /v1/meta-ai/answer
```

입력은 JSON 본문으로 보냅니다. Meta AI는 답하기 전에 자주 웹을 검색합니다. 최대 120초까지 기다리세요.

## 요청

```bash tab="cURL"
curl -X POST "https://gateway.apinoa.com/v1/meta-ai/answer" \
  -H "x-api-key: $APINOA_API_KEY" \
  -H "content-type: application/json" \
  -d '{"prompt": "What are the health benefits of green tea?", "country": "US"}'
```

```js tab="JavaScript"
const res = await fetch("https://gateway.apinoa.com/v1/meta-ai/answer", {
  method: "POST",
  headers: { "x-api-key": process.env.APINOA_API_KEY, "content-type": "application/json" },
  body: JSON.stringify({ prompt: "What are the health benefits of green tea?", country: "US" }),
});
const { success, data, error } = await res.json();
```

```python tab="Python"
import os

import requests

res = requests.post(
    "https://gateway.apinoa.com/v1/meta-ai/answer",
    json={"prompt": "What are the health benefits of green tea?", "country": "US"},
    headers={"x-api-key": os.environ["APINOA_API_KEY"]},
    timeout=120,
)
body = res.json()
```

## 파라미터

| Parameter | Type | Required | Notes |
|---|---|---|---|
| `prompt` | string | yes | The question, as a person would type it. |
| `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`. |
| `near` | string |  | Ask as if from this place: a city, region or US state ("Austin, Texas", "Austin, TX", "Texas"), or Google's canonical location name ("Austin,Texas,United States"). A name that matches more than one place is refused with the candidates. The place must be in the country asked. |

The same parameters, and every response type, are in the OpenAPI document: https://apinoa.com/openapi.json

## 응답

`data`에 [`Answer`](/docs/api-reference/answers/response-schema#answer)를 돌려줍니다. 실제 응답을 줄인 것입니다. 배열은 앞쪽 항목만 남기고 긴 텍스트는 잘랐습니다.

```json
{
  "success": true,
  "data": {
    "engine": "meta-ai",
    "prompt": "What are the health benefits of green tea?",
    "askedAt": "2026-11-20T22:53:03.096Z",
    "country": "US",
    "title": "Health benefits of green tea",
    "outcome": "answered",
    "blocks": [
      {
        "type": "paragraph",
        "markdown": "Green tea is one of the most studied drinks in nutrition research, largely because of its **catechins** — especially **epigallocatechin gall…"
      },
      {
        "type": "paragraph",
        "markdown": "Here’s what the evidence actually supports, and where it’s still mixed:"
      },
      {
        "type": "heading",
        "level": 3,
        "markdown": "Strongest / most consistent evidence"
      }
    ],
    "text": "Green tea is one of the most studied drinks in nutrition research, largely because of its catechins — especially epigallocatechin gallate (E…",
    "markdown": "Green tea is one of the most studied drinks in nutrition research, largely because of its **catechins** — especially **epigallocatechin gall…",
    "citations": [
      {
        "start": 177,
        "end": 301,
        "sources": [
          0
        ]
      },
      {
        "start": 431,
        "end": 561,
        "sources": [
          1
        ]
      },
      {
        "start": 562,
        "end": 690,
        "sources": [
          0
        ]
      }
    ],
    "sources": [
      {
        "url": "https://www.medscape.com/viewarticle/907456_3",
        "title": "Drinking Tea: Are the Health Benefits Real?",
        "site": "medscape.com",
        "favicon": "https://external.xx.fbcdn.net/emg1/v/t13/6448795917664452366?url=https%3a%2f%2fwww.google.com%2fs2%2ffavicons%3fdomain%3dwww.medscape.com%26…",
        "cited": true,
        "ext": {
          "sourceType": "THIRD_PARTY"
        }
      },
      {
        "url": "https://www.cebm.ox.ac.uk/publication/478284",
        "title": "Centre for Evidence-Based Medicine (CEBM), University of Oxford",
        "site": "cebm.ox.ac.uk",
        "favicon": "https://external.xx.fbcdn.net/emg1/v/t13/6952209899073228159?url=https%3a%2f%2fwww.google.com%2fs2%2ffavicons%3fdomain%3dwww.cebm.ox.ac.uk%2…",
        "cited": true,
        "ext": {
          "sourceType": "THIRD_PARTY"
        }
      },
      {
        "url": "https://www.sciencedirect.com/science/article/abs/pii/S0939475322002472",
        "title": "A comprehensive overview on the effects of green tea on anthropometric measures, blood pressure, glycemic and lipidemic status: An umbrella …",
        "site": "sciencedirect.com",
        "favicon": "https://external.xx.fbcdn.net/emg1/v/t13/7447256685806174489?url=https%3a%2f%2fwww.google.com%2fs2%2ffavicons%3fdomain%3dwww.sciencedirect.c…",
        "cited": true,
        "ext": {
          "sourceType": "THIRD_PARTY"
        }
      }
    ],
    "mentions": [],
    "cards": [],
    "suggestions": [],
    "ext": {
      "steps": [
        {
          "header": "Searching green tea benefits",
          "sources": [
            "https://www.sciencedirect.com/science/article/abs/pii/S0939475322002472",
            "https://gradedhealth.org/topics/green-tea",
            "https://www.healthline.com/nutrition/top-10-evidence-based-health-benefits-of-green-tea%239.-May-help-you-lose-weight"
          ]
        }
      ]
    }
  }
}
```

## 에러

| 상태 | 코드 | 의미 |
|---|---|---|
| 400 | `INVALID_PARAMS` | 파라미터가 없거나, 알 수 없거나, 범위를 벗어났거나, 이 엔진이 받지 않는 값입니다. 메시지에 이름이 나옵니다. |
| 401 | `UNAUTHORIZED` | `x-api-key` 헤더가 없거나, 폐기되었거나 알 수 없는 키입니다. |
| 402 | `INSUFFICIENT_CREDITS` | 크레딧이 이 호출 비용에 모자랍니다. 대시보드에서 플랜을 고르거나 충전하세요. |
| 429 | `MARKETPLACE_SATURATED` | 동시 호출이 너무 많습니다. `Retry-After` 초만큼 기다린 뒤 다시 시도하세요. |
| 502 | `UPSTREAM_ERROR` | 엔진이 쓸 수 없는 응답을 보냈습니다. 간격을 두고 다시 시도하세요. |
| 502 | `UPSTREAM_TIMEOUT` | 엔진이 제때 답하지 않았습니다. 다시 시도하세요. |
| 503 | `SERVICE_UNAVAILABLE` | 일시적인 장애입니다. 간격을 두고 다시 시도하세요. |

모든 코드는 [Errors](/docs/errors)에 있습니다. 실패한 호출은 과금되지 않습니다.

## 가격

**Price** 1.5 credits per call. [Plans and credits](https://apinoa.com/en/pricing).

## 참고

- Meta AI는 질문의 언어로 답합니다. `language`는 받지 않습니다.
- 질문은 하나씩 따로 합니다. `conversation`과 `photos`는 받지 않습니다.
- 웹 검색 여부는 Meta AI가 스스로 정합니다. 검색하면 `citations`가 각 출처가 뒷받침하는 텍스트 구간을 표시하고, `sources`에는 찾은 페이지가 들어가며 답변이 사용한 출처는 `cited`가 `true`입니다. 답변이 언급한 Instagram 계정은 `mentions`에, 보여 준 장소(좌표 포함)는 `cards`에, 검색 단계는 `ext`에 들어 있습니다.
- Meta AI는 쇼핑 질문 등 일부 질문에 답하지 않습니다. 이때는 `outcome: "refused"`와 함께 Meta AI의 안내가 `text`에 옵니다.
- Meta AI는 `US`, `CA`, `GB`, `AU`, `DE`, `IN`, `BR`에서 질문할 수 있습니다.
- 답변은 보통 5~30초 걸립니다.
