RESTful APIs

Powerful APIs for Modern Applications

Access cutting-edge web scraping, AI-powered tools, and automation services through robust, scalable APIs designed for developers who build the future.

99.9%
Uptime
<200ms
Response Time
24/7
Support

Live API Status

All Systems Operational

Web Scraper API

Hierarchical data extraction

Operational

AI Processing API

Intelligent data analysis

Operational

Email Automation API

Smart email processing

Operational

Available APIs

Robust, scalable solutions for your development needs

AI Processing API

v1.5

Harness the power of AI for text analysis, sentiment detection, content summarization, and intelligent data processing. Built on state-of-the-art language models.

Text analysis & sentiment
Content summarization
Language detection
Keyword extraction
POST /api/ai/analyze

Email Automation API

v1.2

Intelligent email processing and automation. Generate personalized responses, classify emails, extract key information, and automate customer support workflows.

Smart response generation
Email classification
Template management
Bulk processing
POST /api/email/process

Quick Start Guide

Get up and running in minutes

Authentication

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

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"}'
Need an API Key?

Contact us at api@lehana.in to get your free API key.

Web Scraper Example

Extract structured data from any website with hierarchical configuration:

JavaScript Example
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);
Response Example
{
  "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"
}

API Playground

Test our APIs directly in your browser

Select API

Request Configuration

Request Body

Processing...

Response

200 OK
// Response will appear here after sending a request