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 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"}'