API Description

The AI Mode API returns responses based on user prompts, seamlessly embedding them at the top of standard search results. Leveraging generative AI, it automatically extracts and aggregates information from multiple web sources. This empowers sellers to quickly grasp market sentiment, gain insights into market trends, and facilitate precise product selection.

🤖 Pulling this data to power an AI Agent? Instead of writing custom parsing code, leverage our MCP Server to grant your AI workspace native, real-time access with zero integration friction.

Request URL

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

Request Headers

ParametersParameter valueTypeDescription
Content-Typeapplication/jsonstringData format
AuthorizationBearer xxxstringAuthorization Token

Request Parameters

ParametersRequiredTypeDescription
urlYesstringTarget web page URL.
Note: The URL must NOT contain the first-turn prompt (e.g. the q parameter). All prompts are passed via the param array.
parserNameYesstringParser name
paramYesstring[]Multi-turn conversation prompts. Each entry corresponds to one conversation turn.
(Performance drops when the array length exceeds five.)
screenshotNobooleanDo you need a page screenshot?

Response value

Return valueTypeDescription
codeintStatus Code
messagestringMessage
dataobjectReturned data

Return parameter data description

Return valueTypeDescription
jsonobjectReturn JSON data (see the json description below)
urlstringTask URL
screenshotstringThe storage location of the page screenshot

Return parameter json description

Return valueTypeDescription
typestringResult type
finalUrlstringThe URL of the conversation. You can open this URL to continue viewing the conversation later.
turnsobject[]Conversation turns. Each element represents one turn of the conversation.
turns[].promptstringThe prompt of this turn. It corresponds one-to-one with its answer (overview).
turns[].overviewobjectThe AI Overview answer for this turn, including items (content) and references.

Request example

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"]
}'

Return example

{
  "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"
  }
}

Credit Consumption

  • Average response time: 30s
  • Credit Consumption:
Credits Consumption
Obtain complete AI Overview information2 Credits/Per Request