Scrape JavaScript-rendered pages
without managing browsers!
Scrape React, Next.js, Vue, Angular & More
# Enable browser rendering with browser=true
curl -X GET "https://api.scrapingant.com/v2/general?url=https://spa-example.com&browser=true" \
-H "x-api-key: YOUR_API_KEY"
No Selenium or Playwright Needed
Headless Chrome Per Request
browser=true spins up a fresh Headless Chrome instance. Your target site sees a real browser fingerprint, making detection much harder.Wait for Dynamic Content with wait_for_selector
wait_for_selector to tell ScrapingAnt to wait until a specific element appears before returning the HTML.- Infinite scroll pages
- Lazy-loaded product listings
- AJAX-loaded data tables
- Client-side rendered dashboards
# Wait for element before returning HTML
curl -X GET "https://api.scrapingant.com/v2/general" \
-d "url=https://spa-app.com/products" \
-d "browser=true" \
-d "wait_for_selector=.product-card" \
-H "x-api-key: YOUR_API_KEY"
Execute Custom JavaScript with js_snippet
js_snippet to run your own JavaScript code inside the browser.import requests
import base64
# JavaScript to scroll and click "Load More"
js_code = """
window.scrollTo(0, document.body.scrollHeight);
document.querySelector('.load-more-btn').click();
"""
response = requests.get(
"https://api.scrapingant.com/v2/general",
params={
"url": "https://example.com/feed",
"browser": "true",
"js_snippet": base64.b64encode(js_code.encode()).decode()
},
headers={"x-api-key": "YOUR_API_KEY"}
)
Advanced Browser Options
return_page_source
block_resource
proxy_type
proxy_country
Get Started in Minutes
cURL
curl -X GET \
"https://api.scrapingant.com/v2/general\
?url=https://example.com&browser=true" \
-H "x-api-key: YOUR_API_KEY"
Python
import requests
response = requests.get(
"https://api.scrapingant.com/v2/general",
params={
"url": "https://example.com",
"browser": "true"
},
headers={"x-api-key": "YOUR_API_KEY"}
)
print(response.text)
Node.js
const axios = require('axios');
axios.get('https://api.scrapingant.com/v2/general', {
params: {
url: 'https://example.com',
browser: 'true'
},
headers: { 'x-api-key': 'YOUR_API_KEY' }
}).then(res => console.log(res.data));
Ready to Scrape?
Pricing
Startup
500.000 API credits
Popular choice!
Custom Plan
10M+ API credits
"Onboarding and API integration was smooth and clear. Everything works great. The support was excellent. Overall a great scraper."
"Great communication with co-founders helped me to get the job done. Great proxy diversity and good price."
"This product helps me to scale and extend my business. The API is easy to integrate and support is really good."
Frequently asked questions.
What do I get back from a JavaScript rendering request?
When you use browser=true, ScrapingAnt returns the fully rendered HTML after all JavaScript has executed. This includes dynamically loaded content, AJAX responses, and any DOM modifications made by client-side scripts. You get the same HTML you'd see if you opened "View Source" in a real browser after the page finished loading.
How long can a rendered request run?
By default, browser rendering requests have a timeout of 30 seconds. If you need more time (for complex SPAs or slow-loading pages), you can use the timeout parameter to extend this up to 180 seconds. Combined with wait_for_selector, you can ensure all content loads before the response is returned.
Can I turn browser rendering off?
Yes. By default, browser=false, which means requests use simple HTTP fetching without JavaScript execution. This is faster and uses fewer API credits. Only enable browser=true when your target site requires JavaScript rendering to display the content you need.
How many API credits does JavaScript rendering cost?
Requests with browser=true cost 10 API credits by default (with standard proxies). Using residential proxies with browser rendering costs 125 credits per request. You can reduce costs by using block_resource to skip loading unnecessary assets like images and stylesheets.
What's the difference between ScrapingAnt and running my own Puppeteer/Playwright?
With ScrapingAnt, you don't need to manage browser binaries, handle crashes, configure proxies, or scale infrastructure. We handle all of that. You just call our API and get rendered HTML back. Plus, our system automatically rotates proxies and handles anti-bot detection, which would require significant additional work with self-hosted solutions.
"Our clients are pleasantly surprised by the response speed of our team."
ScrapingAnt Founder