ScrapeForge API Reference
Interactive testing for enterprise web scraping
Enterprise Web Scraping
https://www.searchhive.dev/api/v1/scrapeforgeScrape Any Website
Enterprise web scraping with JavaScript rendering, proxy rotation, and comprehensive data extraction
Using demo key for testing. Replace with your actual API key.
The target URL to scrape. Must be a valid HTTP/HTTPS URL.
Execute JavaScript on the page using Chromium browser engine.
CSS selector or XPath to wait for before scraping.
Maximum time to wait for elements in seconds (1-60).
Custom User-Agent string for the request.
Type of proxy to use for the request.
Target country for proxy location (ISO 3166-1 alpha-2).
Extract all links found on the page with metadata.
Extract all images with URLs, alt text, and dimensions.
Extract structured data (JSON-LD, Microdata, RDFa).
Extract meta tags, Open Graph, and Twitter Card data.
Capture a screenshot of the page (requires render_js=true).
Custom HTTP headers to include with the request.
Cookies to include with the request.
import requests
response = requests.post(
"https://www.searchhive.dev/api/v1/scrapeforge",
headers={"Authorization": "Bearer " + "demo_sk_scrapeforge_67890"},
json={
"url": "https://example.com/products",
"render_js": true,
"wait_for": "#product-list",
"wait_time": 10,
"proxy_type": "residential",
"proxy_country": "US",
"extract_links": true,
"extract_images": false,
"extract_schema": true,
"extract_meta": true,
"screenshot": false,
"custom_headers": {},
"cookies": {}
}
)
data = response.json()
print(data)Click "Test API" to see the response
Response Schema
ScrapeForge Response Fields
| Field | Type | Description |
|---|---|---|
content | string | The raw HTML content of the scraped page. Example: |
text_content | string | Plain text content extracted from HTML. Example: |
links | array | Array of link objects with URL, text, and attributes. Example: |
images | array | Array of image objects with src, alt, and dimensions. Example: |
schema_data | array | Structured data found on the page. Example: |
meta_data | object | Meta tags, Open Graph, and Twitter Card data. Example: |
screenshot_url | string | URL to the captured screenshot (if enabled). Example: |
load_time | float | Time taken to load and process the page in seconds. Example: |
status_code | integer | HTTP status code returned by the target server. Example: |
final_url | string | Final URL after following redirects. Example: |
credits_used | integer | Number of API credits consumed by this request. Example: |
Enterprise Features
Bulk Scraping
POST/v1/scrapeforge/bulkProcess up to 100 URLs simultaneously with intelligent load balancing and error handling.
{
"urls": [
"https://site1.com/page1",
"https://site2.com/page2",
"https://site3.com/page3"
],
"render_js": true,
"concurrent_requests": 3,
"retry_failed": true,
"max_retries": 2
}Error Codes
Page scraped successfully
Invalid URL or parameters
Target site blocked the request
Target site took too long to respond
Common Use Cases
Extract product details, prices, and inventory
Extract article content and metadata
Scrape posts, comments, and user profiles
Extract property listings and details