◆ API Reference

Webshrinker
Developer Docs

Powerful APIs to classify, screenshot, and analyze websites at scale. Integrate website intelligence into your applications in minutes.

Authentication

All API requests require authentication using your access key and secret key, which you can find in your Webshrinker account dashboard. Two methods are supported:

Basic HTTP Authentication Recommended
Send your access key as the HTTP username and secret key as the password. Credentials are base64-encoded and transmitted in the Authorization header. Use only over HTTPS.
Pre-signed URLs string
Generate a signed URL using an MD5 hash of your secret key and the request URL. Useful when embedding requests directly in HTML or sharing URLs without exposing your secret key. Supports optional expiration timestamps.
Base URL: All API requests are made to https://api.webshrinker.com — always use HTTPS.

Common HTTP Status Codes

Code Status Description
200OKRequest successful, data returned.
202AcceptedRequest accepted; data is being calculated. Check back shortly.
400Bad RequestMalformed or invalid request parameters.
401UnauthorizedInvalid or missing API credentials.
402Payment RequiredAccount request limit reached or balance depleted.
412Precondition FailedInsufficient information to classify the target.
429Too Many RequestsRate limit exceeded. Slow down request frequency.
500Server ErrorInternal server error. Retry the request.