You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add dedicated Python/JS/cURL examples for the `screenshot` and `branding`
formats on the Scrape service, including option ranges from the SDK schema.
Align stealth cost (+5 credits) across sitemap, markdownify, smartscraper,
and CLI docs to match the public pricing page.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: services/scrape.mdx
+121Lines changed: 121 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -190,6 +190,127 @@ curl -X POST https://v2-api.scrapegraphai.com/api/scrape \
190
190
191
191
</CodeGroup>
192
192
193
+
### Screenshot
194
+
195
+
Capture a screenshot of the page. Use `fullPage` to grab the entire scrollable area, or set `width`/`height` for a fixed viewport. `quality` (1–100) controls JPEG compression.
196
+
197
+
<CodeGroup>
198
+
199
+
```python Python
200
+
from scrapegraph_py import ScrapeGraphAI, ScreenshotFormatConfig
curl -X POST https://v2-api.scrapegraphai.com/api/scrape \
300
+
-H "SGAI-APIKEY: $SGAI_API_KEY" \
301
+
-H "Content-Type: application/json" \
302
+
-d '{
303
+
"url":"https://scrapegraphai.com",
304
+
"formats": [{ "type":"branding" }]
305
+
}'
306
+
```
307
+
308
+
</CodeGroup>
309
+
310
+
<Note>
311
+
Branding costs **25 credits** per call — significantly more than other formats because it runs additional vision and typography analysis on top of the page fetch.
312
+
</Note>
313
+
193
314
### Structured JSON extraction
194
315
195
316
Use the `json` format to extract structured data during the scrape.
0 commit comments