import requestsfrom pprint import pprint# Structure payload.payload ={"source":"universal","url":"https://www.zillow.com/homedetails/10066-Cielo-Dr-Beverly-Hills-CA-90210/243990393_zpid/",#"render": "html", # If page type requires}# Get response.response = requests.request('POST','https://realtime.oxylabs.io/v1/queries', auth=('YOUR_USERNAME', 'YOUR_PASSWORD'), #Your credentials go here json=payload,)pprint(response.json())
<?php$params =array('source'=>'universal','url'=>'https://www.zillow.com/homedetails/10066-Cielo-Dr-Beverly-Hills-CA-90210/243990393_zpid/',//'render' => 'html', // If page type requires);$ch =curl_init();curl_setopt($ch, CURLOPT_URL,"https://realtime.oxylabs.io/v1/queries");curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));curl_setopt($ch, CURLOPT_POST,1);curl_setopt($ch, CURLOPT_USERPWD,"YOUR_USERNAME".":"."YOUR_PASSWORD"); //Your credentials go here$headers =array();$headers[] ="Content-Type: application/json";curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);$result =curl_exec($ch);echo $result;if (curl_errno($ch)) {echo'Error:'.curl_error($ch);}curl_close($ch);
import fetch from'node-fetch';constusername='YOUR_USERNAME';constpassword='YOUR_PASSWORD';constbody= {'source':'universal','url':'https://www.zillow.com/homedetails/10066-Cielo-Dr-Beverly-Hills-CA-90210/243990393_zpid/',//'render': 'html', // If page type requires};constresponse=awaitfetch('https://realtime.oxylabs.io/v1/queries', { method:'post', body:JSON.stringify(body), headers: {'Content-Type':'application/json','Authorization':'Basic '+Buffer.from(`${username}:${password}`).toString('base64'), }});console.log(awaitresponse.json());
The example above uses the Realtime integration method. If you would like to use some other integration method in your query (e.g., Push-Pull or Proxy Endpoint), refer to the integration methods section.
Although we do not have a dedicated parser for Zillow, you can write your own parsing instructions with Custom Parser feature and get structured data.
Output
An example of a response that you can expect to get from the Realtime endpoint: