chetavly-sdk
v2.0.0
Published
Chetavly SDK 🚀The High-Performance Data-as-a-Service (DaaS) Engine.Chetavly provides developers with a powerful, "API-First" infrastructure to scrape, automate, and extract data from the web using headless browser clusters. Built by engineers for enginee
Readme
Chetavly SDK 🚀The High-Performance Data-as-a-Service (DaaS) Engine.Chetavly provides developers with a powerful, "API-First" infrastructure to scrape, automate, and extract data from the web using headless browser clusters. Built by engineers for engineers.📦 Installation Install the SDK using your preferred package manager:Bash-npm install chetavly-sdk
OR
yarn add chetavly-sdk 🔑 AuthenticationTo use the Chetavly DaaS engine, you need an API Key.Create an account at Chetavly Dashboard.Navigate to API Management and click Create Key.Important: Copy your key (starts with ct_live_) immediately. For security, it is only displayed once.🚀 Quick StartExtract data from any website with just a few lines of code. JavaScript
import Chetavly from 'chetavly-sdk';
// Initialize the client const client = new Chetavly('ct_live_your_secret_key');
async function run() { try { const result = await client.daas.scrape({ url: 'https://news.ycombinator.com', selector: '.titleline', waitTime: 3000 // Optional: milliseconds to wait for JS rendering });
console.log("✅ Data Extracted:", result.data);
console.log("💰 Remaining Balance:", result.newBalance);} catch (error) { console.error("❌ Scrape Failed:", error.message); } }
run();
💳 Billing & UsageChetavly operates on a transparent Pay-As-You-Go model. Each successful scrape is billed at a flat rate of $0.01.Check Your UsageMonitor your success rate and balance programmatically:JavaScriptconst usage = await client.daas.usage();
console.log(Success Rate: ${usage.stats.successfulScrapes}/${usage.stats.totalRequests});
console.log(Current Balance: $${usage.account.balance});
Response CodesStatusMeaningAction200SuccessData retrieved successfully.402Payment RequiredLow balance. Please top up in the dashboard.403ForbiddenYour 14-day trial has expired.503Service BusyOur browser nodes are full. Retry in a few seconds.🛠️ Advanced UsageCustom ExtractionYou can pass complex CSS selectors or trigger specific wait conditions to handle heavy React/Vue/Angular applications.JavaScriptconst result = await client.daas.scrape({
url: 'https://example.com/dynamic-app',
selector: 'div.main-content > ul.data-list',
waitTime: 5000
});
🛡️ Security Best PracticesServer-Side Only: Never use this SDK in the frontend (browser). Your API Key must remain secret.Environment Variables: Always store your ct_live_ key in your environment variables.JavaScriptconst client = new Chetavly(process.env.CHETAVLY_API_KEY);
🤝 Support & RoadmapFounder: Chetavly : Ahialo CloudBeta Access: Contact [email protected] © 2025 Chetavly. All rights reserved.
