Official SDKs
JavaScript SDK
Official JavaScript/TypeScript SDK for ScrapeGraphAI
Installation
Install the package using npm or yarn:
Features
- AI-Powered Extraction: Smart web scraping with artificial intelligence
- Async by Design: Fully asynchronous architecture
- Type Safety: Built-in TypeScript support with Zod schemas
- Production Ready: Automatic retries and detailed logging
- Developer Friendly: Comprehensive error handling
Quick Start
Initialize with your API key:
Store your API keys securely in environment variables. Use .env
files and libraries like dotenv
to load them into your app.
Services
SmartScraper
Extract specific information from any webpage using AI:
LocalScraper
Process local HTML content with AI extraction:
Markdownify
Convert any webpage into clean, formatted markdown:
API Credits
Check your available API credits:
Feedback
Help us improve by submitting feedback programmatically:
Support
Was this page helpful?