API Documentation

Everything you need to integrate WebStruct.AI into your applications

Getting Started
Get up and running with WebStruct.AI API in minutes

1. Get Your API Key

First, you'll need to get your API key from your dashboard.

curl -H "Authorization: Bearer YOUR_API_KEY" \
     https://api.webstruct.ai/v1/scrape

2. Make Your First Request

Send a POST request to start scraping a website.

{ "url": "https://example.com", "command": "Extract all product names and prices", "format": "json" }

3. Get Results

The API will return structured data based on your command.

{ "status": "completed", "data": [ {"name": "Product 1", "price": "$29.99"}, {"name": "Product 2", "price": "$39.99"} ], "records_found": 2 }