Example of using AI Scraper to extract data from a real estate website.
curl --location 'https://app.mrscraper.com/api/ai' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer API_TOKEN' \ --data '{ "urls": [ "https://www.zillow.com/san-francisco-ca/" ], "min": 100, "max": 200, "timeout": 180, "schema": { "type": "array", "description": "List of properties", "items": { "type": "object", "description": "property information", "properties": { "property_address": { "type": "string", "description": "property address" }, "property_price": { "type": "number", "description": "property price" }, "property_url": { "type": "string", "description": "property valid image url" }, "property_image_url": { "type": "string", "description": "property valid image url" }, "property_price_currency": { "type": "string", "description": "the currency of the property price" }, "property_location": { "type": "string", "description": "property location" } }, "required": [ "property_address", "property_price", "property_url", "property_image_url", "property_price_currency", "property_location" ] }, "required": [ "property" ] } }'
{ "result": [ { "property_address": "874 Dartmouth St, San Francisco, CA 94134", "property_price": 798000, "property_url": "https://www.zillow.com/homedetails/874-Dartmouth-St-San-Francisco-CA-94134/15172150_zpid/", "property_image_url": "https://photos.zillowstatic.com/fp/7986b00d44dd9fdbfa2934b0a172828a-p_e.jpg", "property_price_currency": "USD", "property_location": "San Francisco, CA" }, { "property_address": "737 Paris St, San Francisco, CA 94112", "property_price": 1099000, "property_url": "https://www.zillow.com/homedetails/737-Paris-St-San-Francisco-CA-94112/15176533_zpid/", "property_image_url": "https://photos.zillowstatic.com/fp/df579287528766243825bf4316637c70-p_e.jpg", "property_price_currency": "USD", "property_location": "San Francisco, CA" } ], "tokenUsage": 4, "totalDone": 1 }