# Extract structured data from one page

Provider: ScrapeGraphAI
Final price: $0.02/success
Success rate: 95,1%

Fetch one public HTML page and use a natural-language prompt to return structured JSON.

## Example

```curl
curl -X POST 'https://toolswitch.dev/v1/tools/scrapegraphai.web.extract' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{"url":"https://example.com","prompt":"Extract the page title and purpose.","schema":{"type":"object","required":["title"],"properties":{"title":{"type":"string"},"purpose":{"type":"string"}}},"allowedTypes":["text/html"]}'
```

[View on Toolswitch](https://toolswitch.dev/pt/tools/scrapegraphai.web.extract)
