Skip to content

Smart Web Scraper

This API provides an intelligent extraction engine designed to turn websites into structured data. It supports batch processing (up to 10 URLs) and features an AI Analysis that reads, structures, and categorizes content automatically.

It handles the heavy lifting: resolving relative links, cleaning DOM disturbance like ads, & scripts, and formatting text for machine reading.

  • Clean Extraction: Removes navbars, footers, and scripts to focus on the main content.
  • AI Summarization: Optional AI analysis to extract key points and sentiment.
  • SSRF Protection: Built-in security against internal network scanning.
POST /api/v1/web-search

The following parameters are accepted in the request body:

FieldTypeRequiredDescription
urlstringarrayYes
summarizebooleanOptionalSet to true to enable AI analysis. (Default: false).
Terminal window
curl -X POST https://heavstal.com.ng/api/v1/web-search \
-H "Content-Type: application/json" \
-H "x-api-key: <YOUR_API_KEY>" \
-d '{"url": ["https://techcrunch.com/article-1", "https://verge.com/article-2"], "summarize": true}'
{
"status": "success",
"creator": "HEAVSTAL TECH",
"batch_size": 2,
"data": [
{
"url": "https://techcrunch.com/article-1",
"meta": { "title": "Startup raises $10M..." },
"content": {
"summary": "A startup focused on AI has raised Series A funding...",
"key_points": ["$10M raised", "Led by VC Firm X", "Plans to hire 50 engineers"],
"sentiment": "positive"
}
},
{
"url": "https://verge.com/article-2",
"meta": { "title": "New Phone Review" },
"content": { "summary": "..." }
}
]
}