Introduction
Complete reference for the ScrapeGraphAI REST API
Overview
The ScrapeGraphAI API provides powerful endpoints for AI-powered web scraping and content extraction. Our RESTful API allows you to extract structured data from any website, process local HTML content, and convert web pages to clean markdown.
Authentication
All API requests require authentication using an API key. You can get your API key from the dashboard.
Keep your API key secure and never expose it in client-side code. Use environment variables to manage your keys safely.
Base URL
Available Services
SmartScraper
Extract structured data from any website using AI
LocalScraper
Process local HTML content with AI extraction
Markdownify
Convert web content to clean markdown
User
Manage credits and submit feedback
SDKs & Integration
We provide official SDKs to help you integrate quickly:
Python SDK
Perfect for data science and backend applications
JavaScript SDK
Ideal for web applications and Node.js
AI Framework Integration
Error Handling
Our API uses conventional HTTP response codes:
200
- Success400
- Bad Request401
- Unauthorized429
- Too Many Requests500
- Server Error
Check our error handling guide for detailed information about error responses and how to handle them.
Support
Need help with the API? We’re here to assist:
Was this page helpful?