JavaScript Rendering
Learn how to use a render parameter in Web Scraper API so you can scrape dynamic pages efficiently.
HTML
PNG (Screenshot)
Request sample
curl --user "user:pass" \
'https://realtime.oxylabs.io/v1/queries' \
-H "Content-Type: application/json" \
-d '{"source": "universal", "url": "https://www.example.com", "render": "html"}'import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'universal',
'url': 'https://www.example.com',
'render': 'html',
}
# Get response.
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('user', 'pass1'),
json=payload,
)
# Instead of response with job status and results url, this will return the
# JSON response with the result.
pprint(response.json())Forcing rendering on specific pages
Browser instructions
Browser InstructionsLast updated
Was this helpful?

