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参数缺失、未知、超出范围,或该引擎不接受。消息中会指出是哪一个。
401UNAUTHORIZED缺少 x-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 中。
  • 可从 US、CA、GB、AU、DE、IN、BR 提问。
  • 回答通常需要 5 到 30 秒。

本页内容