curl -X POST https://api.zapfetch.com/v1/extract \
-H "Authorization: Bearer $ZAPFETCH_KEY" \
-H "Content-Type: application/json" \
-d '{
"urls": ["https://news.ycombinator.com"],
"prompt": "Extract the top 5 story titles with their points and author.",
"schema": {
"type": "object",
"properties": {
"stories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": { "type": "string" },
"points": { "type": "integer" },
"author": { "type": "string" }
}
}
}
}
}
}'