Access cutting-edge web scraping, AI-powered tools, and automation services through robust, scalable APIs designed for developers who build the future.
Hierarchical data extraction
Intelligent data analysis
Smart email processing
Robust, scalable solutions for your development needs
Advanced hierarchical web scraping with intelligent data extraction, proxy rotation, and anti-detection mechanisms. Perfect for gathering structured data from any website.
POST /api/scrape
Harness the power of AI for text analysis, sentiment detection, content summarization, and intelligent data processing. Built on state-of-the-art language models.
POST /api/ai/analyze
Intelligent email processing and automation. Generate personalized responses, classify emails, extract key information, and automate customer support workflows.
POST /api/email/process
Get up and running in minutes
All API requests require authentication using API keys. Include your API key in the request headers:
curl -X POST https://api.lehana.in/scrape \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'
Contact us at api@lehana.in to get your free API key.
Extract structured data from any website with hierarchical configuration:
const response = await fetch('https://api.lehana.in/scrape', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
hierarchy_config: {
hierarchy: {
url: "https://example.com/products",
selector: ".product-item",
data: {
title: ".product-title",
price: ".product-price",
image: ".product-image@src"
}
}
}
})
});
const data = await response.json();
console.log(data);
{
"success": true,
"data": [
{
"title": "Amazing Product",
"price": "$29.99",
"image": "https://example.com/product1.jpg"
},
{
"title": "Another Product",
"price": "$39.99",
"image": "https://example.com/product2.jpg"
}
],
"timestamp": "2025-09-27T20:15:00Z",
"execution_time": "1.234s"
}
Test our APIs directly in your browser
// Response will appear here after sending a request