The search query or question you want to ask. This should be a clear and specific prompt that will guide the AI in finding and extracting relevant information.Example: “What is the latest version of Python and what are its main features?”
curl -X POST 'https://api.scrapegraphai.com/v1/searchscraper' \-H 'SGAI-APIKEY: YOUR_API_KEY' \-H 'Content-Type: application/json' \-d '{ "user_prompt": "What is the latest version of Python and what are its main features?", "output_schema": { "properties": { "version": {"type": "string"}, "release_date": {"type": "string"}, "major_features": {"type": "array", "items": {"type": "string"}} }, "required": ["version", "release_date", "major_features"] }}'
{ "request_id": "123e4567-e89b-12d3-a456-426614174000", "status": "completed", "user_prompt": "What is the latest version of Python and what are its main features?", "result": { "version": "3.12", "release_date": "October 2, 2023", "major_features": [ "Improved error messages", "Per-interpreter GIL", "Support for the Linux perf profiler", "Faster startup time" ] }, "reference_urls": [ "https://www.python.org/downloads/", "https://docs.python.org/3.12/whatsnew/3.12.html" ], "error": ""}