---
title: "Answer"
description: "向 Copilot 提问并获取回答，附带引用和来源。"
---

> 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/copilot/answer
```

以 JSON 请求体发送输入。回答需要数秒，请将超时设为最多 120 秒。

## 请求

```bash tab="cURL"
curl -X POST "https://gateway.apinoa.com/v1/copilot/answer" \
  -H "x-api-key: $APINOA_API_KEY" \
  -H "content-type: application/json" \
  -d '{"prompt": "What are the best running shoes for beginners?", "country": "US"}'
```

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

```python tab="Python"
import os

import requests

res = requests.post(
    "https://gateway.apinoa.com/v1/copilot/answer",
    json={"prompt": "What are the best running shoes for beginners?", "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`. |

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": "copilot",
    "outcome": "answered",
    "prompt": "What are the best running shoes for beginners?",
    "askedAt": "2026-11-08T00:11:17.564Z",
    "country": "US",
    "language": "en-US",
    "title": "Best Running Shoes for Beginners in 2026",
    "blocks": [
      {
        "type": "paragraph",
        "markdown": "The **ASICS Novablast 6** is the strongest all‑around beginner pick th…"
      },
      {
        "type": "heading",
        "level": 3,
        "markdown": "✅ Top Overall Pick"
      },
      {
        "type": "paragraph",
        "markdown": "**ASICS Novablast 6** — Best beginner shoe overall"
      },
      {
        "type": "list",
        "ordered": false,
        "items": [
          {
            "markdown": "**Why it works:** Outstanding cushioning that protects your legs as yo…",
            "depth": 0
          }
        ]
      }
    ],
    "text": "The ASICS Novablast 6 is the strongest all‑around beginner pick thanks…",
    "markdown": "The **ASICS Novablast 6** is the strongest all‑around beginner pick th…",
    "citations": [
      {
        "start": 197,
        "end": 243,
        "sources": [
          1
        ]
      }
    ],
    "sources": [
      {
        "url": "https://runrepeat.com/guides/best-for-beginners-running-shoes",
        "title": "7 Best Running Shoes For Beginners in 2026 - RunRepeat",
        "site": "RunRepeat",
        "favicon": "https://th.bing.com/th/id/ODF.ekmCiAFMQY-67T3t-jB_1w?w=16&h=16&c=10&pid=genserp&rm=2",
        "snippet": "The 7 best running shoes for beginners based on extensive wear and lab…",
        "cited": true,
        "ext": {
          "displayUrl": "https://runrepeat.com › guides › best-for-beginners-running-shoes"
        }
      },
      {
        "url": "https://www.rtings.com/running-shoes/reviews/best/beginners",
        "title": "The 5 Best Running Shoes For Beginners of 2026 - RTINGS.com",
        "site": "RTINGS.com",
        "favicon": "https://th.bing.com/th/id/ODF.JG-7jC49BJkulfbWgwcl8g?w=16&h=16&c=10&pid=genserp&rm=2",
        "snippet": "We've tested over 310 running shoes, and these are our picks for the b…",
        "cited": true,
        "ext": {
          "displayUrl": "https://www.rtings.com › running-shoes › reviews › best › beginners"
        }
      }
    ],
    "mentions": [],
    "cards": [],
    "suggestions": [],
    "ext": {
      "model": "Gpt5Mini"
    }
  }
}
```

## 错误

| 状态 | 代码 | 含义 |
|---|---|---|
| 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](/docs/errors)。失败的调用不计费。

## 价格

**Price** $0.0012 per call. [List price](https://apinoa.com/en/pricing); the rate steps down above 1,000 calls a day.

## 说明

- Copilot 一次只回答一个问题：每次都请完整地提问。它不接受 `conversation` 和 `photos`。
- Copilot 用提问所用的语言回答。
- `ext.model` 是 Copilot 声明的作答模型名称。
