Skip to main content

screenshotbase-python

Python client for the screenshotbase.com API.

This SDK wraps the public endpoints and supports authentication via apikey header (default) or apikey query parameter.

Installation

pip install screenshotbase

Quickstart

from screenshotbase.client import Client
import os

client = Client(api_key=os.environ.get("SCREENSHOTBASE_API_KEY"))

# Status
print(client.status())

# Render screenshot
print(client.render({
    "url": "https://example.com",
    "full_page": True,
    "viewport": "1366x768",
    "format": "png",
}))

Authentication

Header (default) vs query parameter auth:

client = Client(api_key="your_api_key")
client_qs = Client(api_key="your_api_key", auth_in_query=True)

API

  • status() → API availability and quota
  • render(params) → website screenshot render. Example params: { "url": "https://example.com", "viewport": "1366x768", "full_page": True, "format": "png" }

For full parameters, see docs: https://screenshotbase.com/docs/

License

MIT

Metadata

Release files for screenshotbase 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for screenshotbase 0.1.1
File Size Uploaded
screenshotbase-0.1.1.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for screenshotbase 0.1.1
File Interpreter ABI Platform
screenshotbase-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.9 kB

Release files / screenshotbase-0.1.1.tar.gz

Download URL screenshotbase-0.1.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2e01af5dfcdccf658aa2af6db8b9997ff572d41291982172a8622ee29aa54c87
BLAKE2b-256 checksum
How to use checksums
1a6144c54228116e319033ad280c8132b4110a233af0d3e6c5655008abb45f73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.10

Release files / screenshotbase-0.1.1-py3-none-any.whl

Download URL screenshotbase-0.1.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a72add7f215997f23ac3e06b0415c4f7c88ed4eaa659bd9266e88d5d811a82b4
BLAKE2b-256 checksum
How to use checksums
d241e67030291a39c57b647363e84e91653ddd6619219027d88f35856dddce43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.10

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page