Versions in this module Expand all Collapse all v1 v1.0.1 Jun 29, 2026 v1.0.0 Jun 28, 2026 Changes in this version + const DefaultBaseURL + const DefaultTimeout + type APIError struct + Code string + Message string + StatusCode int + func (e *APIError) Error() string + type AuthenticationError struct + type Client struct + func NewClient(apiKey string, opts ...Option) *Client + func (c *Client) Save(ctx context.Context, opts ScreenshotOptions, path string) (*Metadata, error) + func (c *Client) Screenshot(ctx context.Context, opts ScreenshotOptions) (*Result, error) + type ColorScheme string + const Dark + const Light + type Geolocation struct + Accuracy float64 + Latitude float64 + Longitude float64 + type ImageType string + const JPEG + const PDF + const PNG + const WebP + type InsufficientCreditsError struct + Balance int + func (e *InsufficientCreditsError) Error() string + type InvalidAPIKeyError struct + type Metadata struct + CreditsRemaining int + DurationMs int + ScreenshotID string + type MockupDevice string + const BrowserMockup + const IPhoneMockup + const MacBookMockup + type Option func(*Client) + func WithBaseURL(baseURL string) Option + func WithHTTPClient(httpClient *http.Client) Option + func WithTimeout(timeout time.Duration) Option + type Result struct + ContentType string + Image []byte + Metadata Metadata + type ScreenshotFailedError struct + type ScreenshotOptions struct + BlockAds bool + CSSInject string + CacheTTL int + ColorScheme ColorScheme + Delay int + DevicePixelRatio int + FullPage bool + Geolocation *Geolocation + HTML string + Height int + JSInject string + Locale string + MockupDevice MockupDevice + PreloadFonts bool + Quality int + RemoveCookieBanners bool + RemoveElements []string + RemovePopups bool + StealthMode bool + Timezone string + Type ImageType + URL string + WaitForSelector string + WaitUntil WaitUntil + Width int + type WaitUntil string + const DOMContentLoaded + const Load + const NetworkIdle0 + const NetworkIdle2