Skip to main content

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, perform AI-powered web searches, 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.
SGAI-APIKEY: your-api-key-here
Keep your API key secure and never expose it in client-side code. Use environment variables to manage your keys safely.

Base URL

https://api.scrapegraphai.com/v1

Available Services

SmartScraper

Extract structured data from any website using AI

SearchScraper

Perform AI-powered web searches with structured results

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

LangChain

Use our services in your LLM workflows

LlamaIndex

Build powerful search and QA systems

Error Handling

Our API uses conventional HTTP response codes:
  • 200 - Success
  • 400 - Bad Request
  • 401 - Unauthorized
  • 429 - Too Many Requests
  • 500 - 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:

Discord Community

Get help from our community

Email Support

Contact our technical team