Apinoa Docs

Answer

Meta AI에 질문하고 답변을 받습니다. 출처가 함께 옵니다.

원본 .mdx 보기
POST /v1/meta-ai/answer

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

요청

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"}'

파라미터

파라미터타입필수설명
promptstring예The question, as a person would type it.
countrystringThe market the answer is asked from, as an ISO 3166 country code. Each engine's page lists its countries.
includeenum listpage: also return the answer as a self-contained HTML page, in page.
nearstringAsk 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.

같은 파라미터와 모든 응답 타입은 OpenAPI 문서에도 있습니다.

응답

data에 Answer를 돌려줍니다. 실제 응답을 줄인 것입니다. 배열은 앞쪽 항목만 남기고 긴 텍스트는 잘랐습니다.

{
  "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"
          ]
        }
      ]
    }
  }
}

에러

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

모든 코드는 Errors에 있습니다. 실패한 호출은 과금되지 않습니다.

가격

가격 호출당 1.5 크레딧. 플랜과 크레딧

참고

  • 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초 걸립니다.

이 페이지 내용