Examples
Ahsant API Code Examples & Use Cases
Working code examples for curl, Node.js, and Python. Copy and run with your key.
Available Examples
- Website Screenshot API - High-res PNG/JPG capture of any URL.
- Summarize Webpage API - Article summaries and bullet points.
- Scrape URL to HTML & Clean Text API - Scrape text, links, and HTML.
- Stealth Screenshot API - Resilient screenshots on protected pages.
- Image Similarity API - Sub-image detection and similarity scores.
- AI Browser Automation API - One-page natural language browser tasks.
Website Screenshot API Example
curl -X POST "https://ai.sneakypeekai.com/get_screenshot?url=https://news.ycombinator.com" \
-H "X-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"full_page": true}'
Summarize Webpage API Example
curl -X POST "https://api.sneakypeekai.com/api/summary" \
-H "X-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.bbc.com/news"}'