Skip to main content

Interactive API Reference

This page provides complete interactive documentation for the WebscrapingHQ API. You can explore all endpoints, see detailed parameter descriptions, and test API calls directly from this page.

About the API​

The WebscrapingHQ API provides a powerful, unified interface for web scraping with advanced features including:

  • JavaScript Rendering - Full browser automation with Chromium
  • AI-Powered Extraction - Smart content extraction using machine learning
  • Screenshot Capture - High-quality page screenshots and visual monitoring
  • Anti-Bot Protection - Advanced techniques to bypass detection systems
  • Global Infrastructure - Fast, reliable scraping from multiple locations

Authentication​

All API requests require authentication using an API key. Include your API key in the request headers:

X-API-KEY: your-api-key-here

Interactive Documentation​

Use the interactive documentation below to explore endpoints, see request/response examples, and test API calls:

Quick Start Examples​

After exploring the API documentation above, you can get started quickly with these examples:

Basic Scraping​

curl -X POST https://your-domain.com/api/v1/scrape \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com"
}'

JavaScript Rendering​

curl -X POST https://your-domain.com/api/v1/scrape \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"renderJs": true,
"waitFor": 3000
}'

Screenshot Capture​

curl -X POST https://your-domain.com/api/v1/scrape \
-H "X-API-KEY: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"screenshot": true,
"renderJs": true
}'

Error Codes​

Common error responses you might encounter:

Status CodeErrorDescription
400Bad RequestInvalid request parameters
401UnauthorizedInvalid or missing API key
429Too Many RequestsRate limit exceeded
500Internal Server ErrorServer error, please retry

Need Help?​


Next Steps: Start with the Quick Start Guide or test the API using the interactive documentation above.