核心版和高级版套餐已停止销售。请考虑迁移到一体化网络爬虫 API;请点击此处查看指南.
perplexity 模板用于从 Perplexity 获取对话式响应。
输入参数
Perplexity 模板可用的请求参数:| 参数 | 类型 | 必需 | 描述 |
|---|---|---|---|
target | string | ✅ | 目标类型必须设置为 perplexity。 |
prompt | string | ✅ | 发送到 Perplexity 的提示。必须少于 8000 个字符。 |
headless | string | 默认情况下,强制执行 JavaScript 渲染,请在请求中省略参数。 设置为 png 以接收屏幕截图响应。更多信息请参见此处。 | |
parse | boolean | 设置为 true 时自动解析结果。默认值为 false。 | |
geo | string | 设置提交提示时使用的国家/地区。 |
请求示例
# 将 'TOKEN VALUE' 更新为您的授权令牌
curl --request 'POST' \
--url 'https://scraper-api.decodo.com/v2/task' \
--header 'Accept: application/json' \
--header 'Authorization: Basic TOKEN VALUE' \
--header 'Content-Type: application/json' \
--data '
{
"target": "perplexity",
"prompt": "Top 3 tips to improve productivity while working from home?",
"parse": true,
"geo": "United States"
}
'
输出
作为输出,您将获得一个 JSON 文件。 下表提供了解析后的 JSONcontent 部分中字段的描述。请注意,字段数量可能会根据提供的提示而有所不同。
| Content 键 | 描述 |
|---|---|
model | 使用的 Perplexity 模型。 |
prompt_query | 请求中提交的原始查询。 |
displayed_tabs | Perplexity 中的界面选项卡(例如,购物、图片)。 |
answer_results | 完整的响应文本。 |
answer_results_md | Markdown 格式的完整响应文本。 |
related_queries | 与主提示相关的查询列表。 |
top_images | 带有相关标题和链接的热门图片列表。 |
top_sources | 主要引用列表,每个引用都有相关的链接和标题。 |
inline_products | 带有相关标题、价格、链接和其他元数据的内联产品列表。 |
additional_results 下提供额外数据。这些字段的描述可以在下表中找到。请注意,字段数量可能会根据提供的提示而有所不同。
| Additional results 键 | 描述 |
|---|---|
hotels_results | 带有相关标题、链接、地址和其他详细信息的酒店列表。 |
places_results | 带有相关标题、链接、坐标和其他元数据的地点列表。 |
videos_results | 带有相关缩略图、标题、链接和来源的视频列表。 |
shopping_results | 带有相关标题、价格、链接和其他元数据的购物商品列表。 |
sources_results | 引用列表,每个引用都有相关的链接和标题。 |
images_results | 带有相关标题、图片链接和来源页面链接的相关图片列表。 |
响应示例
{
"results": [
{
"content": {
"results": {
"url": "https://www.perplexity.ai/search/top-3-tips-to-improve-producti-b8lqANjhQbmQYeQ_lcNHVg",
"model": "turbo",
"top_sources": [
{
"url": "https://www.indeed.com/career-advice/career-development/productivity-tips-working-from-home",
"title": "20 Tips for Working From Home: How To Be Productive Outside the ...",
"source": "indeed career guide"
},
{
"url": "https://brainhub.eu/library/stay-productive-working-remotely",
"title": "Staying Productive While Working From Home - Tips & Tricks",
"source": "brainhub.eu"
},
{
"url": "https://www.unitemps.com/career-advice/working-from-home-tips/",
"title": "15 working from home tips for productivity and wellbeing - Unitemps",
"source": "unitemps"
},
{
"url": "https://www.bamboohr.com/blog/tips-for-working-remotely",
"title": "How to Work From Home: Tips to Boost Productivity",
"source": "bamboohr.com"
}
],
"prompt_query": "Top 3 tips to improve productivity while working from home?",
"answer_results": [
"The top 3 tips to improve productivity while working from home are:",
{
"list": [
[
[
[
"Create a dedicated workspace:"
],
" Set up a specific area in your home, ideally separate from your living or relaxing spaces, that is organized, comfortable, and designed for work. This physical separation helps signal to your brain that it's time to focus and can minimize distractions[3][12]."
]
],
[
[
[
"Establish a consistent routine and clear working hours:"
],
" Begin your day with a morning routine and set regular work hours. Treat your remote workday like you would in an office—get dressed, start at a set time, and plan breaks. This helps reinforce structure, making it easier to concentrate and maintain boundaries between work and personal life[1][5][12]."
]
],
[
[
[
"Limit distractions and take regular breaks:"
],
" Proactively manage potential distractions, such as household chores, social media, or family members. Use productivity techniques like time blocking or the Pomodoro Method (working for set intervals, then taking short breaks) to enhance concentration and reduce burnout[1][3][9]."
]
]
]
},
"Implementing these three strategies will help most remote workers boost focus, efficiency, and overall well-being while working from home.",
{
"enumerated_references": [
{
"num": 1,
"url": "https://www.indeed.com/career-advice/career-development/productivity-tips-working-from-home"
},
{
"num": 2,
"url": "https://brainhub.eu/library/stay-productive-working-remotely"
},
{
"num": 3,
"url": "https://www.unitemps.com/career-advice/working-from-home-tips/"
},
{
"num": 4,
"url": "https://www.bamboohr.com/blog/tips-for-working-remotely"
},
{
"num": 5,
"url": "https://asana.com/resources/how-to-be-productive-at-home"
},
{
"num": 6,
"url": "https://dev.to/thinkers/guide-to-stay-productive-while-working-from-home-4m69"
},
{
"num": 7,
"url": "https://www.reddit.com/r/productivity/comments/160qb1r/wfh_peeps_what_are_some_tips_you_can_share/"
},
{
"num": 8,
"url": "https://www.networksolutions.com/blog/work-from-home-best-practices/"
},
{
"num": 9,
"url": "https://www.upwork.com/resources/productivity-tips-working-from-home"
},
{
"num": 10,
"url": "https://porch.com/advice/stay-productive-working-home"
},
{
"num": 11,
"url": "https://www.highspot.com/blog/36-tips-to-stay-productive-while-working-from-home/"
},
{
"num": 12,
"url": "https://www.nextiva.com/blog/working-from-home-tips.html"
},
{
"num": 13,
"url": "https://theeverygirl.com/productivity-hacks-work-from-home/"
}
]
}
],
"displayed_tabs": [
"search",
"sources",
"tasks"
],
"related_queries": [
"What are the most effective routines to start and end my workday at home",
"How can I minimize distractions like social media and household chores",
"Which technology tools can boost my productivity while working remotely",
"How do I set healthy boundaries with my household and coworkers",
"What are some personal habits that can enhance my focus and efficiency at home"
],
"answer_results_md": "\nThe top 3 tips to improve productivity while working from home are:\n\n- **Create a dedicated workspace:** Set up a specific area in your home, ideally separate from your living or relaxing spaces, that is organized, comfortable, and designed for work. This physical separation helps signal to your brain that it's time to focus and can minimize distractions[3][12].\n- **Establish a consistent routine and clear working hours:** Begin your day with a morning routine and set regular work hours. Treat your remote workday like you would in an office—get dressed, start at a set time, and plan breaks. This helps reinforce structure, making it easier to concentrate and maintain boundaries between work and personal life[1][5][12].\n- **Limit distractions and take regular breaks:** Proactively manage potential distractions, such as household chores, social media, or family members. Use productivity techniques like time blocking or the Pomodoro Method (working for set intervals, then taking short breaks) to enhance concentration and reduce burnout[1][3][9].\n\nImplementing these three strategies will help most remote workers boost focus, efficiency, and overall well-being while working from home.\n\n[1] https://www.indeed.com/career-advice/career-development/productivity-tips-working-from-home\n[2] https://brainhub.eu/library/stay-productive-working-remotely\n[3] https://www.unitemps.com/career-advice/working-from-home-tips/\n[4] https://www.bamboohr.com/blog/tips-for-working-remotely\n[5] https://asana.com/resources/how-to-be-productive-at-home\n[6] https://dev.to/thinkers/guide-to-stay-productive-while-working-from-home-4m69\n[7] https://www.reddit.com/r/productivity/comments/160qb1r/wfh_peeps_what_are_some_tips_you_can_share/\n[8] https://www.networksolutions.com/blog/work-from-home-best-practices/\n[9] https://www.upwork.com/resources/productivity-tips-working-from-home\n[10] https://porch.com/advice/stay-productive-working-home\n[11] https://www.highspot.com/blog/36-tips-to-stay-productive-while-working-from-home/\n[12] https://www.nextiva.com/blog/working-from-home-tips.html\n[13] https://theeverygirl.com/productivity-hacks-work-from-home/\n",
"parse_status_code": 12000,
"additional_results": {
"sources_results": [
{
"url": "https://www.indeed.com/career-advice/career-development/productivity-tips-working-from-home",
"title": "20 Tips for Working From Home: How To Be Productive Outside the ..."
},
{
"url": "https://brainhub.eu/library/stay-productive-working-remotely",
"title": "Staying Productive While Working From Home - Tips & Tricks"
},
{
"url": "https://www.unitemps.com/career-advice/working-from-home-tips/",
"title": "15 working from home tips for productivity and wellbeing - Unitemps"
},
{
"url": "https://www.bamboohr.com/blog/tips-for-working-remotely",
"title": "How to Work From Home: Tips to Boost Productivity"
},
{
"url": "https://asana.com/resources/how-to-be-productive-at-home",
"title": "Be Productive at Home: 11 Tips to Promote Efficiency [2025] - Asana"
},
{
"url": "https://dev.to/thinkers/guide-to-stay-productive-while-working-from-home-4m69",
"title": "How to Stay Productive While Working from Home: A Complete Guide"
},
{
"url": "https://www.reddit.com/r/productivity/comments/160qb1r/wfh_peeps_what_are_some_tips_you_can_share/",
"title": "WFH peeps, what are some tips you can share? - productivity - Reddit"
},
{
"url": "https://www.networksolutions.com/blog/work-from-home-best-practices/",
"title": "20 Work From Home Best Practices for Boosting Productivity"
},
{
"url": "https://www.upwork.com/resources/productivity-tips-working-from-home",
"title": "25 Top Tips for Work Productivity from Home in 2025 - Upwork"
},
{
"url": "https://porch.com/advice/stay-productive-working-home",
"title": "Easy Tips to Help you Stay Productive While Working from Home"
},
{
"url": "https://www.highspot.com/blog/36-tips-to-stay-productive-while-working-from-home/",
"title": "36 Tips to Stay Productive While Working from Home"
},
{
"url": "https://www.nextiva.com/blog/working-from-home-tips.html",
"title": "24 Work From Home Tips to Drive Better Productivity"
},
{
"url": "https://theeverygirl.com/productivity-hacks-work-from-home/",
"title": "Productivity Hacks for Work From Home Employees | The Everygirl"
}
]
}
},
"errors": [],
"status_code": 12000,
"task_id": "7355837545495677953"
},
"headers": {
"date": "Tue, 29 Jul 2025 05:52:26 GMT",
"vary": "RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Router-Segment-Prefetch, Accept-Encoding",
"cf-ray": "966a59a63b0a09f5-LAS",
"server": "cloudflare",
"content-type": "text/html; charset=utf-8",
"x-powered-by": "Next.js",
"cache-control": "private, no-cache, no-store, max-age=0, must-revalidate",
"x-firefox-spdy": "h2",
"cf-cache-status": "DYNAMIC",
"x-frame-options": "DENY",
"content-encoding": "gzip",
"content-security-policy": "object-src 'none'; base-uri 'self'; form-action 'self' https://onedrive.live.com https://*.sharepoint.com; frame-ancestors 'self' https://onedrive.live.com https://*.sharepoint.com https://app.athina.ai; block-all-mixed-content; upgrade-insecure-requests;",
"strict-transport-security": "max-age=15552000; includeSubDomains; preload"
},
"cookies": [
{
"key": "m",
"path": "/",
"value": "912dbae5-6ec9-470a-8297-afa3b1f5ff64321a7d",
"domain": "m.stripe.com",
"secure": true,
"comment": "",
"expires": 1788328356,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "pplx.visitor-id",
"path": "/",
"value": "33d3e98b-9f20-422e-a4fd-6421ec4c9d8f",
"domain": "www.perplexity.ai",
"secure": false,
"comment": "",
"expires": 1785304338,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "pplx.session-id",
"path": "/",
"value": "a42cc928-c2e5-4e9c-9d15-65964fc19602",
"domain": "www.perplexity.ai",
"secure": false,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "__cf_bm",
"path": "/",
"value": "t6fowQdTSSFC.8BvfJKRMJQl2vrrp2X5eZCTqNhaaWk-1753768338-1.0.1.1-eyaXAaQF6JFcXXzyvgstCzX7JKFDzdTab2XXt3lEtWqGTxVVwuUAX6cM19z2KJovFiYktIxHoUW7kPViIcdSmxPNbgSjMnS6_snbX0UW3YM",
"domain": ".perplexity.ai",
"secure": true,
"comment": "",
"expires": 1753770138,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "__cflb",
"path": "/",
"value": "02DiuDyvFMmK5p9jVbVnMNSKYZhUL9aGkRrsFKFDUXmLg",
"domain": "www.perplexity.ai",
"secure": true,
"comment": "",
"expires": 1753851138,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "segmented-control-popover-studio",
"path": "/",
"value": "1",
"domain": "www.perplexity.ai",
"secure": false,
"comment": "",
"expires": 1785304342,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "next-auth.csrf-token",
"path": "/",
"value": "0f29983dd9cef1af8097db3e9dea8d296a3504c581ba8dcdeaf5697a5d2f31e9%7C8fca4b8f36614ef650ad66f0dbdfc444db3da837392cdf3e9d4a32d1e86fd6e4",
"domain": "www.perplexity.ai",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "comet-custom-color-themes-enabled",
"path": "/",
"value": "true",
"domain": "www.perplexity.ai",
"secure": false,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "_dd_s",
"path": "/",
"value": "aid=6ace56ec-f8be-4e65-add6-b800f95d62a9&rum=2&id=03e7f657-643c-4c79-ad4c-1bdbe467737a&created=1753768339902&expire=1753769247456&logs=0",
"domain": "www.perplexity.ai",
"secure": false,
"comment": "",
"expires": 1753769247,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "cf_clearance",
"path": "/",
"value": "lg51YL07Hejhsr4U9dixz0x0fxwKABC6bZc.KxlZR60-1753768347-1.2.1.1-iHQve.BmqgAiabDecZM47J_zyx1mRogKZep0J7j.lAD8wBTS9t.RPVD2u1YSrvUv3DQWFxd3DNDRB9_avcse.ceo0QIIQ.hwArNeoJNtuSOoShU.rnrtxYfPwCneA2.Fb7zIsF9NPxCrGVB5WGPl6bXl9cl5FU0JPj0W1qX0EIrpDYsiFDXxm6nS5pvIYa3OQGzX9EnNCt7DKQUxBrNzVoHsmDyNeRBhvCgL1KPAUOg",
"domain": ".perplexity.ai",
"secure": true,
"comment": "",
"expires": 1785304348,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "next-auth.callback-url",
"path": "/",
"value": "https%3A%2F%2Fwww.perplexity.ai%2Fapi%2Fauth%2Fsignin-callback%3Fredirect%3Dhttps%253A%252F%252Fwww.perplexity.ai",
"domain": "www.perplexity.ai",
"secure": true,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "AWSALB",
"path": "/",
"value": "Y8Gu8sgxuQgsSmDLCDTXQakmD5jfXKeVkNL1VOOl4lcZcWWoRE0TqlMND8AyUJoIUnBrWYDIZ12BbgQvNh2MsUb8fDclHiuGgWtLY2ZTvgMC9l4FX2PYGfQSRPVV",
"domain": "www.perplexity.ai",
"secure": false,
"comment": "",
"expires": 1754373149,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "AWSALBCORS",
"path": "/",
"value": "Y8Gu8sgxuQgsSmDLCDTXQakmD5jfXKeVkNL1VOOl4lcZcWWoRE0TqlMND8AyUJoIUnBrWYDIZ12BbgQvNh2MsUb8fDclHiuGgWtLY2ZTvgMC9l4FX2PYGfQSRPVV",
"domain": "www.perplexity.ai",
"secure": true,
"comment": "",
"expires": 1754373149,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "sidebarHiddenHubs",
"path": "/",
"value": "[]",
"domain": "www.perplexity.ai",
"secure": false,
"comment": "",
"expires": 1788328349,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "pplx.la-status",
"path": "/",
"value": "allowed",
"domain": "www.perplexity.ai",
"secure": false,
"comment": "",
"expires": -1,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "pplx.metadata",
"path": "/",
"value": "{%22qc%22:1%2C%22qcr%22:0%2C%22qcdr%22:0%2C%22qcs%22:0%2C%22qcd%22:1%2C%22hli%22:false%2C%22hcga%22:false%2C%22hcds%22:false%2C%22hso%22:false%2C%22hfo%22:false%2C%22fqa%22:1753768349192%2C%22lqa%22:1753768349192}",
"domain": "www.perplexity.ai",
"secure": false,
"comment": "",
"expires": 1788328354,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "__stripe_mid",
"path": "/",
"value": "1e8097f1-fca4-4b97-9a8a-550f0794b87d047262",
"domain": ".www.perplexity.ai",
"secure": true,
"comment": "",
"expires": 1785304356,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
},
{
"key": "__stripe_sid",
"path": "/",
"value": "321769ee-a763-4151-bc30-ffe5a6cd7b25fb1183",
"domain": ".www.perplexity.ai",
"secure": true,
"comment": "",
"expires": 1753770156,
"max-age": "",
"version": "",
"httponly": "",
"samesite": ""
}
],
"status_code": 200,
"task_id": "7355837545495677953",
"created_at": "2025-07-29 05:52:15",
"updated_at": "2025-07-29 05:52:40"
}
]
}
支持
需要帮助或只是想打个招呼?我们的支持团队全天候为您服务。
您也可以随时通过电子邮件 support@decodo.com 联系我们。
您也可以随时通过电子邮件 support@decodo.com 联系我们。
反馈
找不到您要找的内容?请求一篇文章!
有反馈意见?分享您对我们如何改进的想法。
有反馈意见?分享您对我们如何改进的想法。