# Perplexity

该 `困惑度` source 允许你直接向 Perplexity 发送提示词并捕获完整响应。它会以结构化格式返回生成的文本和相关元数据，以及结果的 Markdown 版本。

## 请求样本

下面的代码示例说明了如何向 Perplexity 发送提示词并检索解析后的响应。

{% tabs %}
{% tab title="cURL" %}

```bash
curl 'https://realtime.oxylabs.io/v1/queries' \\
--user 'USERNAME:PASSWORD' \\
-H 'Content-Type: application/json' \\
-d '{
        "source": "perplexity",
        "prompt": "2025 年排名前 3 的智能手机，比较美国各大市场的价格",
        "geo_location": "美国",
        "parse": true
    }'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
from pprint import pprint


# 结构化负载。
payload = {
    'source': 'perplexity',
    'prompt': '2025 年排名前 3 的智能手机，比较美国各大市场的价格',
    'geo_location': '美国',
    'parse': True
}

# 获取响应。
response = requests.post(
    'https://realtime.oxylabs.io/v1/queries',
    auth=('USERNAME', 'PASSWORD'),
    json=payload
)

# 将格式化后的响应打印到标准输出。
pprint(response.json())
```

{% endtab %}

{% tab title="Node.js" %}

```javascript
const https = require("https");

const username = "USERNAME";
const password = "PASSWORD";
const body = {
    source: "perplexity",
    prompt: "2025 年排名前 3 的智能手机，比较美国各大市场的价格",
    geo_location: "美国",
    parse: true
};

const options = {
    hostname: "realtime.oxylabs.io",
    path: "/v1/queries",
    method: "POST",
    headers: {
        "Content-Type": "application/json",
        Authorization:
            "Basic " + Buffer.from(`${username}:${password}`).toString("base64"),
    },
};

const request = https.request(options, (response) => {
    let data = "";

    response.on("data", (chunk) => {
        data += chunk;
    });

    response.on("end", () => {
        const responseData = JSON.parse(data);
        console.log(JSON.stringify(responseData, null, 2));
    });
});

request.on("error", (error) => {
    console.error("错误：", error);
});

request.write(JSON.stringify(body));
request.end();
```

{% endtab %}

{% tab title="HTTP" %}

```http
https://realtime.oxylabs.io/v1/queries?source=perplexity&prompt=top%203%20smartphones%20in%202025%2C%20compare%20pricing%20across%20US%20marketplaces&geo_location=United%20States&parse=true&access_token=12345abcde
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php

$params = array(
    'source' => 'perplexity',
    'prompt' => '2025 年排名前 3 的智能手机，比较美国各大市场的价格',
    'geo_location' => '美国',
    'parse' => true
);

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "https://realtime.oxylabs.io/v1/queries");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERPWD, "USERNAME" . ":" . "PASSWORD");


$headers = array();
$headers[] = "Content-Type: application/json";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
echo $result;

if (curl_errno($ch)) {
    echo '错误:' . curl_error($ch);
}
curl_close($ch);
```

{% endtab %}

{% tab title="Golang" %}

```go
package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"io"
	"net/http"
)

func main() {
	const Username = "USERNAME"
	const Password = "PASSWORD"

	payload := map[string]interface{} {
		"source":       "perplexity",
		"prompt":       "2025 年排名前 3 的智能手机，比较美国各大市场的价格",
		"geo_location": "美国",
		"parse":        true,
	}

	jsonValue, _ := json.Marshal(payload)

	client := &http.Client{}
	request, _ := http.NewRequest("POST",
		"https://realtime.oxylabs.io/v1/queries",
		bytes.NewBuffer(jsonValue),
	)

	request.SetBasicAuth(Username, Password)
	response, _ := client.Do(request)

	responseText, _ := io.ReadAll(response.Body)
	fmt.Println(string(responseText))
}

```

{% endtab %}

{% tab title="C#" %}

```csharp
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Json;
using System.Threading.Tasks;

namespace OxyApi
{
    class Program
    {
        static async Task Main()
        {
            const string Username = "USERNAME";
            const string Password = "PASSWORD";

            var parameters = new
            {
                source = "perplexity",
                prompt = "2025 年排名前 3 的智能手机，比较美国各大市场的价格",
                geo_location = "美国",
                parse = true
            };

            var client = new HttpClient();

            Uri baseUri = new Uri("https://realtime.oxylabs.io");
            client.BaseAddress = baseUri;

            var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/v1/queries");
            requestMessage.Content = JsonContent.Create(parameters);

            var authenticationString = $"{Username}:{Password}";
            var base64EncodedAuthenticationString = Convert.ToBase64String(System.Text.ASCIIEncoding.UTF8.GetBytes(authenticationString));
            requestMessage.Headers.Add("Authorization", "Basic " + base64EncodedAuthenticationString);

            var response = await client.SendAsync(requestMessage);
            var contents = await response.Content.ReadAsStringAsync();

            Console.WriteLine(contents);
        }
    }
}
```

{% endtab %}

{% tab title="Java" %}

```java
package org.example;

import okhttp3.*;
import org.json.JSONArray;
import org.json.JSONObject;
import java.util.concurrent.TimeUnit;

public class Main implements Runnable {
    private static final String AUTHORIZATION_HEADER = "Authorization";
    public static final String USERNAME = "USERNAME";
    public static final String PASSWORD = "PASSWORD";

    public void run() {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("source", "perplexity");
        jsonObject.put("prompt", "2025 年排名前 3 的智能手机，比较美国各大市场的价格");
        jsonObject.put("geo_location", "United States");
        jsonObject.put("parse", true);

        Authenticator authenticator = (route, response) -> {
            String credential = Credentials.basic(USERNAME, PASSWORD);
            return response
                    .request()
                    .newBuilder()
                    .header(AUTHORIZATION_HEADER, credential)
                    .build();
        };

        var client = new OkHttpClient.Builder()
                .authenticator(authenticator)
                .readTimeout(180, TimeUnit.SECONDS)
                .build();

        var mediaType = MediaType.parse("application/json; charset=utf-8");
        var body = RequestBody.create(jsonObject.toString(), mediaType);
        var request = new Request.Builder()
                .url("https://realtime.oxylabs.io/v1/queries")
                .post(body)
                .build();

        try (var response = client.newCall(request).execute()) {
            if (response.body() != null) {
                try (var responseBody = response.body()) {
                    System.out.println(responseBody.string());
                }
            }
        } catch (Exception exception) {
            System.out.println("错误： " + exception.getMessage());
        }

        System.exit(0);
    }

    public static void main(String[] args) {
        new Thread(new Main()).start();
    }
}
```

{% endtab %}

{% tab title="JSON" %}

```json
{
    "source": "perplexity",
    "prompt": "2025 年排名前 3 的智能手机，比较美国各大市场的价格",
    "geo_location": "美国",
    "parse": true
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
默认情况下，所有发送到 Perplexity 的请求都使用 JavaScript 渲染。使用 Realtime 集成方法时，请确保设置足够的超时时间（例如 180 秒）。
{% endhint %}

我们在示例中使用同步 [**Realtime**](/products/cn/web-scraper-api/integration-methods/realtime.md) 集成方法。如果您想使用 [**Proxy Endpoint**](/products/cn/web-scraper-api/integration-methods/proxy-endpoint.md) 或异步 [**Push-Pull**](/products/cn/web-scraper-api/integration-methods/push-pull.md) 集成，请参阅 [**集成方法**](/products/cn/web-scraper-api/integration-methods.md) 部分。

{% hint style="warning" %}
B**atch requests** are currently **not supported** for the `困惑度` source.&#x20;
{% endhint %}

## 请求参数值

### 通用

用于抓取 Perplexity 响应的基本设置和配置参数。

<table><thead><tr><th width="222">参数</th><th width="350.3333333333333">描述</th><th>默认值</th></tr></thead><tbody><tr><td><mark style="background-color:green;"><strong><code>source</code></strong></mark></td><td>设置爬虫。</td><td><code>困惑度</code></td></tr><tr><td><mark style="background-color:green;"><strong><code>prompt</code></strong></mark></td><td>要提交给 Perplexity 的提示词或问题。</td><td>-</td></tr><tr><td><code>parse</code></td><td>设置为时返回解析后的数据 <code>true</code>.</td><td><code>false</code></td></tr><tr><td><code>geo_location</code></td><td>指定发送提示所用的国家/地区。 <a href="/spaces/ZwEHB9k4MH4pDy80n9mF/pages/eb847b3738ee0ad9f321c5de8b8291a0dd7ff7af"><strong>更多信息</strong></a>.</td><td>-</td></tr><tr><td><code>callback_url</code></td><td>回调端点的 URL。 <a href="/spaces/ZwEHB9k4MH4pDy80n9mF/pages/f93fe40aed5366f8033cd2ebfae30e61c16a4f51"><strong>更多信息</strong></a></td><td>-</td></tr></tbody></table>

&#x20;    \- 必填参数

## 结构化数据

网页爬虫API 返回 HTML 文档或 Perplexity 输出的 JSON 对象，其中包含结果页面中的结构化数据。

<details>

<summary><code>困惑度</code> 结构化输出</summary>

```json
{
  "results": [
    {
      "content": {
        "url": "https://www.perplexity.ai/search/top-3-smartphones-in-2025-comp-wvA0dso7TgW3NpgF8Jd8tg",
        "model": "turbo",
        "top_images": [
          {
            "url": "https://d2u1z1lopyfwlx.cloudfront.net/thumbnails/cca0fd5c-8a96-543c-89ff-3191b4be9c42/57288799-40bc-5d1f-90fe-b936b0a65cd1.jpg",
            "title": "2025 年搭载 AI 驱动功能的顶级智能手机"
          },
          {
            "url": "https://d2u1z1lopyfwlx.cloudfront.net/thumbnails/2cc6543a-e4ef-594b-801f-c5b60308c33a/aec8f940-3469-5597-816f-0dd903b3407c.jpg",
            "title": "2025 年最佳手机：当前美国最好的智能手机……"
          },
          {
            "url": "https://d2u1z1lopyfwlx.cloudfront.net/thumbnails/26dedbf8-baca-5d1f-ac97-bd70b76c61a3/aec8f940-3469-5597-816f-0dd903b3407c.jpg",
            "title": "2025 年最佳手机实测——我们的首选 | Tom's Guide"
          },
          {
            "url": "https://d2u1z1lopyfwlx.cloudfront.net/thumbnails/0a3be7b1-a63d-5c96-b3f5-10b3ab84249c/6a4747ad-0c64-581e-8c1d-a7d907f27628.jpg",
            "title": "2025 年值得购买的最佳手机评测与排名 | Stuff"
          }
        ],
        "prompt_query": "2025 年排名前 3 的智能手机，比较美国各大市场的价格",
        "answer_results": [
          "根据专家评测和市场共识，2025 年排名前 3 的智能手机是：",
          {
            "list": [
              [
                [
                  [
                    "三星 Galaxy S25 Ultra"
                  ]
                ]
              ],
              [
                [
                  [
                    "苹果 iPhone 16 Pro Max"
                  ]
                ]
              ],
              [
                [
                  [
                    "谷歌 Pixel 9 Pro XL"
                  ],
                  "（或者可将 Pixel 9a 作为高性价比选择）"
                ]
              ]
            ]
          },
          "美国各大市场的价格对比（大致建议零售价和市场价）：",
          {
            "table": [
              {
                "table_columns": [
                  [
                    "智能手机型号"
                  ],
                  [
                    "建议零售价（官方）"
                  ],
                  [
                    "Amazon 价格（2025）"
                  ],
                  [
                    "T-Mobile 价格（2025）"
                  ],
                  [
                    "备注"
                  ]
                ]
              },
              {
                "table_rows": [
                  [
                    [
                      "三星 Galaxy S25 Ultra"
                    ],
                    [
                      "$1,300"
                    ],
                    [
                      "约 949.50 美元（256GB）"
                    ],
                    [
                      "约 830 - 1,000 美元"
                    ],
                    [
                      "价格因存储容量而异，256GB 版本优惠价约为 950 美元；提供 S Pen 和高端相机功能[2][11][12]"
                    ]
                  ],
                  [
                    [
                      "苹果 iPhone 16 Pro Max"
                    ],
                    [
                      "$1,200"
                    ],
                    [
                      "约 1,200 美元"
                    ],
                    [
                      "830 美元（iPhone 16 基础版）"
                    ],
                    [
                      "Pro Max 型号通常建议零售价为 1,200 美元；运营商渠道的 iPhone 16 基础版价格约为 830 美元[2][10]"
                    ]
                  ],
                  [
                    [
                      "谷歌 Pixel 9 Pro XL"
                    ],
                    [
                      "$900"
                    ],
                    [
                      "未具体列出"
                    ],
                    [
                      "不适用"
                    ],
                    [
                      "建议零售价 900 美元；Pixel 9a 版本在 500 美元以下，性价比很高[2][4][10]"
                    ]
                  ]
                ]
              }
            ]
          },
          "这些智能手机的备注：",
          {
            "list": [
              [
                "三星 Galaxy S25 Ultra",
                "被认为是整体表现最好的手机，拥有 6.9\" 大屏幕、强大的 Snapdragon 8 Elite 处理器、5,000mAh 电池、多功能摄像头（包括 200MP 传感器），以及内置 S Pen 生产力功能。其价格属于高端水平，但在 Amazon 和 T-Mobile 等平台上可找到低于建议零售价的折扣[2][12]。"
              ],
              [
                "苹果 iPhone 16 Pro Max",
                "是最好的 iPhone，搭载苹果 A18 Pro Bionic 芯片、同样尺寸达 6.9\" 的屏幕，以及最高 1TB 存储，建议零售价约为 1,200 美元。运营商优惠有时能让 iPhone 16 基础版（非 Pro Max）的实际成本更低[2][10]。"
              ],
              [
                "谷歌 Pixel 9 Pro XL",
                "以较低的价格点（约 900 美元）提供了出色的相机和软件体验，并搭载谷歌的 Tensor G4 芯片。对于追求高性价比的用户，Pixel 9a 在 500 美元以下提供了令人印象深刻的相机和性能，但它并不是旗舰级竞争者[2][4]。"
              ]
            ]
          },
          "市场概览：",
          {
            "list": [
              [
                [
                  [
                    "Amazon"
                  ],
                  "通常会提供略有折扣的旗舰价格——Samsung Galaxy S25 Ultra（256GB）售价接近 949.50 美元，OnePlus 13 和其他旗舰机型也有类似折扣[11][12]。"
                ]
              ],
              [
                [
                  [
                    "像 T-Mobile 这样的运营商商店"
                  ],
                  "有时会提供分期和促销价格——iPhone 16 搭配套餐起价接近 830 美元，Samsung Galaxy S25 的价格则有所不同，但在合约下可能接近或低于建议零售价[10][11]。"
                ]
              ],
              [
                "其他市场（Best Buy、Walmart）通常与 Amazon 和运营商定价一致，但会因捆绑销售和季节性促销而有所不同。"
              ]
            ]
          },
          "总之，2025 年的高端旗舰梯队主要围绕 Samsung Galaxy S25 Ultra 和 Apple iPhone 16 Pro Max，而谷歌的 Pixel 9 Pro XL 则是强大且价格略低一些的旗舰替代选择。价格虽有波动，但美国市场上的旗舰设备通常在 900 至 1,300 美元之间，并且 Amazon 和运营商渠道普遍提供折扣[2][10][11][12]。",
          {
            "enumerated_references": [
              {
                "num": 1,
                "url": "https://www.youtube.com/watch?v=EYMe2jy-urg"
              },
              {
                "num": 2,
                "url": "https://www.zdnet.com/article/best-phone/"
              },
              {
                "num": 3,
                "url": "https://www.tomsguide.com/best-picks/best-phones"
              },
              {
                "num": 4,
                "url": "https://www.wired.com/story/best-cheap-phones/"
              },
              {
                "num": 5,
                "url": "https://www.techradar.com/news/best-phone"
              },
              {
                "num": 6,
                "url": "https://www.counterpointresearch.com/insight/top-10-bestselling-smartphones-q1-2025/"
              },
              {
                "num": 7,
                "url": "https://uptradeit.com/blog/what-iphones-will-stop-working"
              },
              {
                "num": 8,
                "url": "https://www.stuff.tv/features/best-phone/"
              },
              {
                "num": 9,
                "url": "https://www.youtube.com/watch?v=93wZbN9tecs"
              },
              {
                "num": 10,
                "url": "https://www.cnet.com/tech/mobile/best-phone/"
              },
              {
                "num": 11,
                "url": "https://www.pcmag.com/picks/the-best-phones"
              },
              {
                "num": 12,
                "url": "https://www.gsmarena.com/best_flagship_phones_buyers_guide-review-2027.php"
              }
            ]
          }
        ],
        "displayed_tabs": [
          "搜索",
          "图片",
          "来源"
        ],
        "related_queries": [
          "排名前 3 的智能手机在美国各大市场的价格如何比较",
          "Galaxy S25 Ultra 有哪些功能使其在 2025 年脱颖而出成为最佳选择",
          "为什么 Pixel 9a 尽管价格较低却被认为是顶级预算选项",
          "iPhone 16 Pro Max 的定价与三星和谷歌机型有何不同",
          "在 2025 年这些顶级智能手机中做选择时，我应该考虑哪些因素"
        ],
        "answer_results_md": "\n根据专家评测和市场共识，2025 年排名前 3 的智能手机是：\n\n1. **Samsung Galaxy S25 Ultra**\n2. **Apple iPhone 16 Pro Max**\n3. **Google Pixel 9 Pro XL**（或者可将 Pixel 9a 作为高性价比选择）\n\n### 美国各大市场的价格对比（大致建议零售价和市场价）：\n\n| 智能手机型号 | 建议零售价（官方） | Amazon 价格（2025） | T-Mobile 价格（2025） | 备注 |\n|------------------------|-----------------|---------------------|-----------------------|------------------------------|\n| Samsung Galaxy S25 Ultra| $1,300          | 约 $949.50（256GB）| 约 $830 - $1,000  | 价格因存储容量而异，256GB 版本优惠价约为 $950；提供 S Pen 和高端相机功能[2][11][12]|\n| Apple iPhone 16 Pro Max | $1,200          | 约 $1,200         | $830（iPhone 16 基础版） | Pro Max 型号通常建议零售价为 $1,200；运营商渠道的 iPhone 16 基础版价格约为 $830[2][10]|\n| Google Pixel 9 Pro XL   | $900            | 未具体列出 | 不适用 | 建议零售价 $900；Pixel 9a 版本在 $500 以下，性价比很高[2][4][10]|\n\n### 这些智能手机的备注：\n\n- **Samsung Galaxy S25 Ultra** 被认为是整体表现最好的手机，拥有 6.9\" 大屏幕、强大的 Snapdragon 8 Elite 处理器、5,000mAh 电池、多功能摄像头（包括 200MP 传感器），以及内置 S Pen 生产力功能。其价格属于高端水平，但在 Amazon 和 T-Mobile 等平台上可找到低于建议零售价的折扣[2][12]。\n\n- **Apple iPhone 16 Pro Max** 是最好的 iPhone，搭载苹果 A18 Pro Bionic 芯片、同样尺寸达 6.9\" 的屏幕，以及最高 1TB 存储，建议零售价约为 $1,200。运营商优惠有时能让 iPhone 16 基础版（非 Pro Max）的实际成本更低[2][10]。\n\n- **Google Pixel 9 Pro XL** 以较低的价格点（约 $900）提供了出色的相机和软件体验，并搭载谷歌的 Tensor G4 芯片。对于追求高性价比的用户，Pixel 9a 在 $500 以下提供了令人印象深刻的相机和性能，但它并不是旗舰级竞争者[2][4]。\n\n### 市场概览：\n\n- **Amazon** 通常会提供略有折扣的旗舰价格——Samsung Galaxy S25 Ultra（256GB）售价接近 $949.50，OnePlus 13 和其他旗舰机型也有类似折扣[11][12]。\n- **像 T-Mobile 这样的运营商商店** 有时会提供分期和促销价格——iPhone 16 搭配套餐起价接近 $830，Samsung Galaxy S25 的价格则有所不同，但在合约下可能接近或低于建议零售价[10][11]。\n- 其他市场（Best Buy、Walmart）通常与 Amazon 和运营商定价一致，但会因捆绑销售和季节性促销而有所不同。\n\n总之，2025 年的高端旗舰梯队主要围绕 Samsung Galaxy S25 Ultra 和 Apple iPhone 16 Pro Max，而谷歌的 Pixel 9 Pro XL 则是强大且价格略低一些的旗舰替代选择。价格虽有波动，但美国市场上的旗舰设备通常在 $900 至 $1,300 之间，并且 Amazon 和运营商渠道普遍提供折扣[2][10][11][12]。\n\n[1] https://www.youtube.com/watch?v=EYMe2jy-urg\n[2] https://www.zdnet.com/article/best-phone/\n[3] https://www.tomsguide.com/best-picks/best-phones\n[4] https://www.wired.com/story/best-cheap-phones/\n[5] https://www.techradar.com/news/best-phone\n[6] https://www.counterpointresearch.com/insight/top-10-bestselling-smartphones-q1-2025/\n[7] https://uptradeit.com/blog/what-iphones-will-stop-working\n[8] https://www.stuff.tv/features/best-phone/\n[9] https://www.youtube.com/watch?v=93wZbN9tecs\n[10] https://www.cnet.com/tech/mobile/best-phone/\n[11] https://www.pcmag.com/picks/the-best-phones\n[12] https://www.gsmarena.com/best_flagship_phones_buyers_guide-review-2027.php\n",
        "parse_status_code": 12000,
        "additional_results": {
          "images_results": [
            {
              "title": "2025 年搭载 AI 驱动功能的顶级智能手机",
              "image_url": "https://img-cdn.thepublive.com/filters:format(webp)/industry-wired/media/media_files/2025/01/04/A9hU8NmTl0weavNM5Cmb.jpg",
              "image_from_url": "https://industrywired.com/ai/top-smartphones-of-2025-with-ai-driven-features-8590046"
            },
            {
              "title": "2025 年最佳手机：当前美国最好的智能手机……",
              "image_url": "https://cdn.mos.cms.futurecdn.net/CuSm3XePuDdXHxmbeoZF8M.jpg",
              "image_from_url": "https://www.techradar.com/news/best-phone"
            },
            {
              "title": "2025 年最佳手机实测——我们的首选 | Tom's Guide",
              "image_url": "https://cdn.mos.cms.futurecdn.net/M4nigVN3vvA5EEnNX9atxY.jpg",
              "image_from_url": "https://www.tomsguide.com/best-picks/best-phones"
            },
            {
              "title": "2025 年值得购买的最佳手机评测与排名 | Stuff",
              "image_url": "https://www.stuff.tv/wp-content/uploads/sites/2/2024/07/Best-smartphones-on-sale-2024-lead.jpg",
              "image_from_url": "https://www.stuff.tv/features/best-phone/"
            },
            {
              "title": "2025 年最值得购买的中端手机 - PhoneArena",
              "image_url": "https://m-cdn.phonearena.com/images/article/133911-wide-two_1200/The-best-mid-range-phones-to-buy-in-2025.jpg",
              "image_from_url": "https://www.phonearena.com/news/best-mid-range-phones_id133911"
            },
            {
              "title": "2025 年最佳智能手机，亲测评估——但是否……",
              "image_url": "https://www.telegraph.co.uk/content/dam/recommended/2025/05/20/TELEMMGLPICT000425244583_17477562398800_trans_NvBQzQNjv4BqqVzuuqpFlyLIwiB6NTmJwfSVWeZ_vEN7c6bHu2jJnT8.jpeg?imwidth=640",
              "image_from_url": "https://www.telegraph.co.uk/recommended/tech/best-smartphones/"
            },
            {
              "title": "2025 年最佳手机 | 评分最高的智能手机和手机……",
              "image_url": "https://www.cnet.com/a/img/resize/b84fd97fe29bbe2ec4d397caf63db53bf8bea241/hub/2022/03/30/e841545d-e55c-47fc-b24a-003bf14e58c8/oneplus-10-pro-cnet-review-12.jpg?auto=webp&fit=crop&height=900&width=1200",
              "image_from_url": "https://www.cnet.com/tech/mobile/best-phone/"
            },
            {
              "title": "2025 年最值得购买的 7 款智能手机 - 最佳智能手机评测",
              "image_url": "https://hips.hearstapps.com/hmg-prod/images/best-smartphones-2025-67afc62def800.jpg?crop=0.503xw:0.671xh;0.338xw,0.218xh&resize=1120:*",
              "image_from_url": "https://www.bestproducts.com/tech/electronics/g60318873/best-smartphones/"
            },
            {
              "title": "2025 年哪些智能手机最受欢迎？赢家可能会……",
              "image_url": "https://i.pcmag.com/imagery/articles/00lQQsbajdRLVSbeeBwioC0-2.fit_lim.size_1050x.webp",
              "image_from_url": "https://www.pcmag.com/news/2025-smartphone-sales-rankings-reveal-a-surprise-leader-and-a-red-flag"
            }
          ],
          "sources_results": [
            {
              "url": "https://www.youtube.com/watch?v=EYMe2jy-urg",
              "title": "2025 年迄今为止最好的 5 款智能手机 - YouTube"
            },
            {
              "url": "https://www.zdnet.com/article/best-phone/",
              "title": "2025 年最值得购买的手机 - ZDNET"
            },
            {
              "url": "https://www.tomsguide.com/best-picks/best-phones",
              "title": "2025 年最佳手机实测——我们的首选 | Tom's Guide"
            },
            {
              "url": "https://www.wired.com/story/best-cheap-phones/",
              "title": "8 款最佳便宜手机（2025），已测试与评测 - WIRED"
            },
            {
              "url": "https://www.techradar.com/news/best-phone",
              "title": "2025 年最佳手机：当前美国最好的智能手机"
            },
            {
              "url": "https://www.counterpointresearch.com/insight/top-10-bestselling-smartphones-q1-2025/",
              "title": "iPhone 16 在 2025 年第一季度领跑全球智能手机销量"
            },
            {
              "url": "https://uptradeit.com/blog/what-iphones-will-stop-working",
              "title": "哪些 iPhone 会在 2025 年停止工作 - UpTrade"
            },
            {
              "url": "https://www.stuff.tv/features/best-phone/",
              "title": "2025 年值得购买的最佳手机评测与排名 - Stuff"
            },
            {
              "url": "https://www.youtube.com/watch?v=93wZbN9tecs",
              "title": "2025 年最佳手机（截至目前）| 中端、拍照、游戏等"
            },
            {
              "url": "https://www.cnet.com/tech/mobile/best-phone/",
              "title": "2025 年最佳手机 | 评分最高的智能手机和…… - CNET"
            },
            {
              "url": "https://www.pcmag.com/picks/the-best-phones",
              "title": "我们测试过的最佳手机（2025 年 7 月）- PCMag"
            },
            {
              "url": "https://www.gsmarena.com/best_flagship_phones_buyers_guide-review-2027.php",
              "title": "2025 年最佳旗舰手机 - 买家指南 - GSMArena.com 测试"
            }
          ]
        }
      },
      "created_at": "2025-07-16 12:14:32",
      "updated_at": "2025-07-16 12:15:28",
      "page": 1,
      "url": "https://www.perplexity.ai/search/top-3-smartphones-in-2025-comp-wvA0dso7TgW3NpgF8Jd8tg",
      "job_id": "7351222707934990337",
      "is_render_forced": false,
      "status_code": 200,
      "parser_type": "perplexity",
      "parser_preset": null
    }
  ]
}
```

</details>

## 输出数据字典

### **HTML 示例**

<div data-full-width="false"><figure><img src="/files/33b8daee4c4c5fde437477649078dbcca03e7f53" alt=""><figcaption></figcaption></figure></div>

### **JSON 结构**

结构化的 `困惑度` 输出包含以下字段，例如 `url`, `model`, `answer_results`，以及更多内容。下表详细说明了我们解析的页面元素，以及相关描述、数据类型和元数据。

{% hint style="info" %}
特定结果类型中的项目和字段数量可能会因提交的提示而异。
{% endhint %}

<table><thead><tr><th width="340.171875">字段</th><th width="300.19921875">描述</th><th width="105.93359375">类型</th></tr></thead><tbody><tr><td><code>url</code></td><td>Perplexity 对话的 URL。</td><td>字符串</td></tr><tr><td><code>page</code></td><td>页码。</td><td>整数</td></tr><tr><td><code>内容</code></td><td>包含已解析的 Perplexity 页面数据的对象。</td><td>对象</td></tr><tr><td><code>model</code></td><td>用于生成答案的 Perplexity 模型。</td><td>字符串</td></tr><tr><td><code>prompt_query</code></td><td>提交给 Perplexity 的原始提示词。</td><td>字符串</td></tr><tr><td><code>displayed_tabs</code></td><td>Perplexity 界面中显示的标签页（例如购物、图片）。</td><td>列表</td></tr><tr><td><code>answer_results</code></td><td>包含文本或嵌套内容的完整 Perplexity 响应。</td><td>列表或字符串</td></tr><tr><td><code>answer_results_md</code></td><td>以 Markdown 格式呈现的完整答案。</td><td>字符串</td></tr><tr><td><code>related_queries</code></td><td>与主提示词相关的查询列表。</td><td>列表</td></tr><tr><td><code>top_images</code></td><td>包含标题和 URL 的顶部图片列表。</td><td>数组</td></tr><tr><td><code>inline_products</code></td><td>内联产品列表，包含标题、价格、链接和其他元数据。</td><td>数组</td></tr><tr><td><code>additional_results.hotels_results</code></td><td>酒店列表，包含标题、URL、地址和其他酒店详情。</td><td>数组</td></tr><tr><td><code>additional_results.places_results</code></td><td>地点列表，包含标题、URL、坐标以及其他元数据。</td><td>数组</td></tr><tr><td><code>additional_results.videos_results</code></td><td>视频列表，包含缩略图、标题、URL 和来源。</td><td>数组</td></tr><tr><td><code>additional_results.shopping_results</code></td><td>购物项目列表，包含标题、价格、URL 和其他产品元数据。</td><td>数组</td></tr><tr><td><code>additional_results.sources_results</code></td><td>引用来源列表，包含其标题和 URL。</td><td>数组</td></tr><tr><td><code>additional_results.images_results</code></td><td>相关图片列表，包含标题、图片 URL 和源页面 URL。</td><td>数组</td></tr><tr><td><code>parse_status_code</code></td><td>解析操作的状态代码。</td><td>整数</td></tr><tr><td><code>created_at</code></td><td>抓取任务创建时的时间戳。</td><td>timestamp</td></tr><tr><td><code>updated_at</code></td><td>抓取任务完成时的时间戳。</td><td>timestamp</td></tr><tr><td><code>job_id</code></td><td>与抓取任务关联的任务 ID。</td><td>字符串</td></tr><tr><td><code>geo_location</code></td><td>提交提示时所使用的代理位置。</td><td>字符串</td></tr><tr><td><code>status_code</code></td><td>抓取任务的状态码。你可以查看所描述的抓取器状态码 <a href="/spaces/ZwEHB9k4MH4pDy80n9mF/pages/3d4407f90bbe20d112e9eeb355b2d8d6a2289d82"><strong>这里</strong></a>.</td><td>整数</td></tr><tr><td><code>parser_type</code></td><td>用于拆分 HTML 内容的解析器类型。</td><td>字符串</td></tr></tbody></table>

### 附加结果和内联产品

除了主要的 AI 响应外，我们还会在 `additional_results`下返回额外数据，例如

* `images_results`
* `sources_results`
* `shopping_results`
* `videos_results`
* `places_results`
* `hotels_results`

这些数组从原始结果页的标签中提取，仅在有相关内容可用时才包含：

<figure><img src="/files/820d21067faceaefe19ede9c7823eb2e9de6335f" alt=""><figcaption></figcaption></figure>

此外， `inline_products` 数组包含直接嵌入在响应中的产品：

<figure><img src="/files/2d5b9be4b20178ba101dea8e0e4eacdf5629a06f" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.oxylabs.io/api-targets/cn/llm-he-ai/perplexity.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
