Skip to main content

cURL Examples

Collection of cURL commands for common WhizoAI operations.

Basic Scraping

curl -X POST "https://api.whizo.ai/v1/scrape"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{
    "url": "https://example.com",
    "options": {
      "format": "markdown"
    }
  }'

Data Extraction

curl -X POST "https://api.whizo.ai/v1/extract"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{
    "url": "https://example.com",
    "schema": {
      "fields": [
        {
          "name": "title",
          "description": "Page title",
          "type": "text"
        }
      ]
    }
  }'

Check Job Status

curl -X GET "https://api.whizo.ai/v1/jobs/job_123"   -H "Authorization: Bearer YOUR_API_KEY"