Complete guide to the official Screenshothis JavaScript SDK
tsconfig.json
targets ES2020 or higher.Import the SDK
Initialize client
Capture your first screenshot
Error Type | Status Code | When it occurs | How to handle |
---|---|---|---|
ForbiddenError | 403 | API quota exceeded or invalid key | Check your quota and key validity |
InternalServerError | 500 | Server-side error | Retry with exponential backoff |
ScreenshothisDefaultError | Various | General API errors | Check error message for details |
requestId
from error responses when contacting support.Performance optimization
Error handling
Security considerations
Memory management