Apinoa Docs

Answer

向 Qwen 提问并获得回答,附带来源。

查看原始 .mdx
POST /v1/qwen/answer

以 JSON 请求体发送输入。Qwen 会先思考并经常搜索后再回答,请将超时设为最多 240 秒。

请求

curl -X POST "https://gateway.apinoa.com/v1/qwen/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"}'

参数

参数类型必填说明
promptstring是The question, as a person would type it.
conversationstringAn earlier answer's conversation.id: ask a follow-up in the same conversation.
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.

这些参数及所有响应类型也写在OpenAPI 文档中。

响应

在 data 中返回 Answer。 真实响应的节选:数组只保留前几项,长文本已截断。

{
  "success": true,
  "data": {
    "engine": "qwen",
    "outcome": "answered",
    "prompt": "What are the best running shoes for beginners?",
    "askedAt": "2026-11-15T20:20:35.944Z",
    "country": "US",
    "blocks": [
      {
        "type": "paragraph",
        "markdown": "When starting your running journey, the \"best\" shoe is one that feels comfortable, protects your joints, and matches your natural foot strik…"
      },
      {
        "type": "heading",
        "level": 3,
        "markdown": "🏆 Top Running Shoes for Beginners"
      },
      {
        "type": "paragraph",
        "markdown": "**1. Best Overall Daily Trainer: Brooks Ghost 17 / 18**\nThe Brooks Ghost is consistently the number one recommendation for new runners becau…"
      }
    ],
    "text": "When starting your running journey, the \"best\" shoe is one that feels comfortable, protects your joints, and matches your natural foot strik…",
    "markdown": "When starting your running journey, the \"best\" shoe is one that feels comfortable, protects your joints, and matches your natural foot strik…",
    "citations": [
      {
        "start": 369,
        "end": 506,
        "sources": [
          1
        ]
      },
      {
        "start": 509,
        "end": 633,
        "sources": [
          5
        ]
      },
      {
        "start": 763,
        "end": 923,
        "sources": [
          5
        ]
      }
    ],
    "sources": [
      {
        "url": "https://theruntesters.com/the-best-running-shoes-for-beginners/",
        "title": "The Best Beginner Running Shoes 2026",
        "site": "theruntesters.com",
        "snippet": "Who Are The Run Testers? · The Best Running Shoes For Beginners 2026 · Asics Novablast 6 · Nike Vomero Plus · Kiprun Kipride Max · Salomon A…",
        "cited": false
      },
      {
        "url": "https://www.runnersworld.com/gear/a19663621/best-running-shoes/",
        "title": "The 15 Best Running Shoes of 2026",
        "site": "runnersworld.com",
        "snippet": "The 7 Best Running Shoes for Beginners in 2026. Advertisement …… ©2026 Hearst Magazines, Inc. All Rights Reserved. Privacy NoticeCA",
        "publishedAt": "2026-10-22T00:00:00.000Z",
        "cited": true
      },
      {
        "url": "https://runrepeat.com/guides/best-for-beginners-running-shoes",
        "title": "7 Best Running Shoes For Beginners in 2026",
        "site": "runrepeat.com",
        "snippet": "Best running shoes for beginners overall. PUMA Velocity Nitro 5. 89 ; Best daily training running shoes for beginners. Nike Winflo 12. 85 ; …",
        "publishedAt": "2026-10-13T00:00:00.000Z",
        "cited": true
      }
    ],
    "mentions": [],
    "cards": [],
    "suggestions": [],
    "ext": {
      "thinking": [
        {
          "title": "Deconstructing the inquiry to determine the optimal footwear selection for novice runners.",
          "thought": "I aim to curate a comprehensive and current list of top-rated running shoes tailored for beginners.\nThis process involves analyzing performa…"
        },
        {
          "title": "Deconstructing the inquiry to determine the optimal footwear selection for novice runners.\nEvaluate the necessity of external information to…",
          "thought": "I aim to curate a comprehensive and current list of top-rated running shoes tailored for beginners.\nThis process involves analyzing performa…"
        },
        {
          "title": "Deconstructing the inquiry to determine the optimal footwear selection for novice runners.\nEvaluate the necessity of external information to…",
          "thought": "I aim to curate a comprehensive and current list of top-rated running shoes tailored for beginners.\nThis process involves analyzing performa…"
        }
      ],
      "searches": [
        "\"best running shoes for beginners\" 2025 2026",
        "\"best beginner running shoes\" reviews Runner's World OR Wirecutter"
      ],
      "reads": [
        {
          "goal": "Get specific shoe models, their features, and why they are good for beginners",
          "urls": [
            "https://runrepeat.com/guides/best-for-beginners-running-shoes",
            "https://www.runnersworld.com/gear/a19663621/best-running-shoes/",
            "https://run.outsideonline.com/gear/road-shoes/best-running-shoes-for-beginners/"
          ]
        }
      ],
      "usage": {
        "inputTokens": 7059,
        "outputTokens": 2306,
        "reasoningTokens": 1437
      }
    }
  }
}

错误

状态代码含义
400INVALID_PARAMS参数缺失、未知、超出范围,或该引擎不接受。消息中会指出是哪一个。
401UNAUTHORIZED缺少 x-api-key 请求头,或密钥已吊销或未知。
402INSUFFICIENT_BALANCE余额不足以支付本次调用。请在控制台充值。
429MARKETPLACE_SATURATED并发调用过多。请等待 Retry-After 秒后重试。
502UPSTREAM_ERROR引擎返回了无法使用的内容。请退避后重试。
502UPSTREAM_TIMEOUT引擎未能及时回答。请重试。
503SERVICE_UNAVAILABLE临时故障。请退避后重试。

全部错误代码见 Errors。失败的调用不计费。

价格

价格 每次调用 $0.0012。标价;单日调用超过 1,000 次后单价下调。

说明

  • Qwen 以提问所用的语言回答,不接受 language。
  • 用上一个回答的 conversation 继续追问;对话大约保持 30 分钟。
  • 是否联网搜索由 Qwen 自行决定。搜索时,citations 标出每个来源所支持的文本区间,sources 列出找到的全部页面,回答用到的来源 cited 为 true。ext 包含 Qwen 的思考步骤、搜索词、读取的页面和 token 用量。
  • 可从 US、SG、JP、KR、GB、DE、HK、TW、AU、CN 提问。不接受 photos。
  • 回答通常需要 30 到 140 秒。少数中途停止的回答会以 outcome: "partial" 返回,并附上 Qwen 已给出的文本。

本页内容