Search and extract information from multiple web sources using AI
Parameter | Type | Required | Description |
---|---|---|---|
apiKey | string | Yes | The ScrapeGraph API Key. |
prompt | string | Yes | A textual description of what you want to achieve. |
numResults | number | No | Number of websites to search (3-20). Default: 3. Higher = deeper research. |
schema | object | No | The Pydantic or Zod object that describes the structure and format of the response |
Advanced: Website Limits & Credit Costs
num_results
(Python) or numResults
(JS) in your request.Example Response
request_id
: Unique identifier for tracking your requeststatus
: Current status of the search (“completed”, “running”, “failed”)result
: The extracted data in structured JSON formatreference_urls
: Source URLs for verificationerror
: Error message (if any occurred during search)Parameter | Type | Required | Description |
---|---|---|---|
apiKey | string | Yes | The ScrapeGraph API Key. |
requestId | string | Yes | The request ID associated with the output of a previous searchScraper request. |