接口说明

AI Mode API 接口提供根据提示词返回从搜索引擎中返回内嵌于标准搜索结果顶部,利用生成式AI自动提取并聚合多源网页信息,帮助卖家快速了解市场舆情,洞察市场趋势,辅助精准选品。

🤖 这些数据是为了喂给 AI Agent 吗? 相比于自行解析原始 API,接入 MCP 服务 可以让 AI Agent(如 Claude Desktop)原生、无缝地调用 Amazon、SERP 和外观专利数据。

请求URL

POST https://scrapeapi.pangolinfo.com/api/v2/scrape

请求头

参数名参数值类型说明
Content-Typeapplication/jsonstring数据格式
AuthorizationBearer xxxstring认证凭证

请求参数

参数必填类型说明
urlYesstring目标网页URL。
注意:URL 中不能携带首轮提示词(如 q 参数),所有提示词均通过 param 数组传入。
parserNameYesstring解析器名称
paramYesstring[]多轮对话提示词,每个元素对应一轮对话。
(当数组长度大于 5 条时,接口响应效率降低)
screenshotNoboolean是否需要⻚⾯截图

响应值

返回值类型说明
codeint状态码
messagestring信息
dataobject返回数据

返回参数 data 说明

返回值类型说明
jsonobject返回json数据(详见下方 json 说明)
urlstring任务URL
screenshotstring⻚⾯截图存放的地址

返回参数 json 说明

返回值类型说明
typestring结果类型
finalUrlstring本次对话的 URL。可通过该 URL 后续继续查看对话内容。
turnsobject[]对话轮次,每个元素代表一轮对话。
turns[].promptstring该轮对话的提示词,与其答案(overview)一一对应。
turns[].overviewobject该轮对话的 AI Overview 答案,包含 items(内容)与 references(参考来源)。

请求示例

curl --request POST \
  --url https://scrapeapi.pangolinfo.com/api/v2/scrape \
  --header 'Authorization: ' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://www.google.com/search?num=10&udm=50",
  "parserName": "googleAISearch",
  "screenshot": true,
  "param": ["how to learn it", "the books of it"]
}'

返回示例

{
  "code":0,
  "message":"ok",
  "data":{
    "ai_overview":1,
    "json":
    {"type":"organic","finalUrl":"https://www.google.com/search?num=10&q=javascript&sei=BmQyao7cC4qn5NoP_fbr8Qc&mstk=AUtExfDYTjIO1kSljI3awEelPZMKk4YaKVUWTYEC3WRH2SIvSYdLgU3NnjXt6eJUAE_0ui5N5rtrf0O1OAF-CXUxxWam5WAZDElyDPPUHsmd2s4P-TaBMdZQsQdo5Y3-DfeWcubK6r6Ur8mMKyFjYjuL2UNanNWSIDlNz2M&csuir=1&udm=50","turns":[{"prompt":"javascript","overview":{"type":"ai_overview","items":[{"type":"ai_overview_elem","content":["UI Manipulation: Updates HTML text and switches visual CSS styles instantly without needing page refreshes.","Event Handling: Listens for user interactions like mouse clicks, form submissions, and keyboard typing.","Data Processing: Requests, parses, and formats data packages behind the scenes using structured JSON formatting.","Media Support: Coordinates browser games, interactive canvas maps, and playback controls for streaming media. Wikipedia +4","Number: Integer or floating-point values.","String: Text segments wrapped in quotes.","Boolean: True or false conditions.","Undefined: A declared variable lacking an assigned value. MDN Web Docs +2","Interactive Playgrounds: Learn syntax interactively via JavaScript.com or jump straight into the browser challenges on LearnJavaScript.online.","Documentation Guides: Read the official MDN JavaScript Guide or browse the comprehensive reference manual on W3Schools JavaScript Tutorial.","Structured Courses: Follow lessons, step-by-step projects, and quizzes over at the Codecademy JavaScript Track."]}],"references":[{"type":"ai_overview_reference","title":"JavaScript - MDN Web Docs","url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript","domain":"MDN Web Docs"},{"type":"ai_overview_reference","title":"JavaScript - Wikipedia","url":"https://en.wikipedia.org/wiki/JavaScript","domain":"Wikipedia"},{"type":"ai_overview_reference","title":"The Modern JavaScript Tutorial","url":"https://javascript.info/","domain":"The Modern JavaScript Tutorial"}]}},{"prompt":"how to learn it","overview":{"type":"ai_overview","items":[{"type":"ai_overview_elem","content":["Variables: Master let, const, and how they store data.","Data Types: Understand strings, numbers, booleans, arrays, and objects.","Conditionals: Learn if/else statements and logic gates (&&, ||).","Functions: Write reusable code blocks and understand arrow functions (=>).","Selecting Elements: Use querySelector() to grab elements from a page.","Changing Content: Use textContent and classList to change text or styles.","Event Listeners: Capture user actions like click, submit, or keydown.","Build This: A digital counter, a modal popup, or a dark-mode toggle switch.","Array Methods: Master map(), filter(), and forEach() to handle data lists.","Asynchronous JS: Understand how fetch(), promises, and async/await work.","Working with APIs: Fetch real-world data (like weather information or movie stats).","Build This: A live weather application or a searchable recipe finder."]}],"references":[]}},{"prompt":"the books of it","overview":{"type":"ai_overview","items":[{"type":"ai_overview_elem"}],"references":[{"type":"ai_overview_reference","title":"JavaScript from Beginner to Professional: Learn JavaScript Quickly by Building Fun, Interactive, and Dynamic Web Apps, Games, and Pages","url":"https://books.google.com/books/about/JavaScript_from_Beginner_to_Professional.html?id=n_xTEAAAQBAJ","domain":"JavaScript from Beginner to Professional: Learn JavaScript Quickly by Building Fun, Interactive, and Dynamic Web Apps, Games, and Pages"},{"type":"ai_overview_reference","title":"Head First JavaScript Programming: A Brain-Friendly Guide","url":"https://books.google.com/books/about/Head_First_JavaScript_Programming.html?id=eSIsAwAAQBAJ","domain":"Head First JavaScript Programming: A Brain-Friendly Guide"}]}}]},
    "screenshot":"https://image.datasea.network/screenshots/1781687302116-ed2df0d21e7c2fdb.png",
    "taskId":"1781687302116-ed2df0d21e7c2fdb",
    "url":"https://www.google.com/search?num=10&udm=50"
  }
}

积点消耗说明

  • 平均响应时间:30s
  • 积点消耗:
消耗积点数
获取完整的AI Overview信息2个/次