> ## Documentation Index
> Fetch the complete documentation index at: https://docs.querying.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Meta AI API：回答、引用页面与搜索词

> 向 Meta AI 提问，以文本和 Markdown 获取回答，以及引用页面和它执行的搜索。

`META_AI` 向 meta.ai 上的 Meta AI 聊天提问。

| | |
| - | - |
| taskType | `META_AI` |
| 读取 | `prompt`（回退到 `query`） |
| 积分 | 1 |
| 国家 | 可选，默认 `US`。 |

## 请求

Meta AI 会拒绝大多数由“best”加商品构成的 prompt，因此请把购物类问题写成问句：

```bash theme={"theme":"css-variables"}
curl -X POST https://api.querying.ai/v1/async/task \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "taskType": "META_AI", "payload": { "prompt": "Which running shoes work best for flat feet?", "country": "US" } }'
```

## 响应

| 字段 | 类型 | 说明 |
| - | - | - |
| `text` | string | 回答。公式按原样以 LaTeX 呈现。商品卡片以带价格的列表行、对比表以 Markdown 表格出现在 Meta AI 显示的位置。 |
| `markdown` | string | 带有引用页面编号链接的回答。公式位于 `$` 之间，或单独一行的 `$$` 之间。商品名称链接到商品页面。无需任何标志即返回。 |
| `sources` | array | 引用的页面：`position`、`url`、`label`、`publisher`。对于 Meta 目录中的商品，`label` 是商品名称，`publisher` 是品牌。 |
| `searchQueries` | string\[] | Meta AI 执行的网页搜索。 |
| `shoppingCards` | array | Meta AI 显示的商品卡片：`title`、`position`、`price`（`value`、`currency`、`raw`）、`oldPrice`（促销前的价格）、`brand`、`thumbnail`、`productLink`、`productId`。 |
| `inlineProducts` | array | 回答中提到的商品，按顺序：`title`、`position`、`price`、`oldPrice`、`thumbnail`、`productLink`、`productId`。`productId` 相同的卡片是同一商品。 |
| `notice` | object | Meta AI 拒绝 prompt 时出现。见下文。 |
| `rawResponse` | array | Meta 的工具调用和最终的结构化响应。仅在设置 `include.rawResponse` 时返回。 |

例如：

```json theme={"theme":"css-variables"}
{
  "text": "For flat feet, stability shoes with firm arch support work best ...",
  "markdown": "For flat feet, stability shoes with firm arch support work best [1](https://www.example.com/flat-feet-shoes).",
  "sources": [{ "position": 1, "url": "https://www.example.com/flat-feet-shoes", "label": "Shoes for flat feet", "publisher": "Example Running" }],
  "searchQueries": ["running shoes flat feet"]
}
```

## Include 标志

| 标志 | 效果 |
| - | - |
| `rawResponse` | 添加 `rawResponse`。 |

`markdown` 无需标志。`searchQueries`、`ads` 和 `shopping` 不起作用。`shoppingCards` 和 `inlineProducts` 随每个显示商品的回答返回。`analysis` 会以 `422 VALIDATION_ERROR` 拒绝，`citationAnalysis` 以 `400 VALIDATION_ERROR` 拒绝。`html` 添加 Meta AI 显示的画面，页面保存成功时收取 0.25 积分，见 [HTML 页面](/zh/engines/html-pages.md)。见 [Markdown 与原始响应](/zh/engines/response-options.md)。

## 拒绝

Meta AI 会拒绝许多由“best”加商品构成的购物类 prompt，例如“best running shoes 2026”。此时任务会**完成**，`text` 为空，并附带原样引用 Meta 提示的 `notice`：

```json theme={"theme":"css-variables"}
{
  "text": "",
  "markdown": "",
  "sources": [],
  "notice": { "type": "policy_declined", "scope": "text", "message": "Your request was blocked by our security system." }
}
```

同一 prompt 重新发送也会得到同样的拒绝。请改写成问句，例如“Which running shoes work best for flat feet?”。

## 相关内容

* [Meta AI 产品页](https://querying.ai/zh/engines/meta-ai)
* [引擎概览](/zh/engines/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.