screenshotbase

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 6 Imported by: 0

README

screenshotbase-go: Golang Website Screenshot Client

This package is a Golang wrapper for screenshotbase.com that aims to make the usage of the API as easy as possible in your project.

Usage

Initialize the API with your API Key (get one for free at screenshotbase.com):

import screenshotbase "github.com/everapihq/screenshotbase-go"

func main() {
	screenshotbase.Init("YOUR-API-KEY")
}

Afterwards you can make calls to the API like this:

Status Endpoint
body, err := screenshotbase.Status()
Take Endpoint
img, err := screenshotbase.Take(map[string]string{
	"url": "https://bbc.com",
	"format": "png",
	"full_page": "1",
})

Find out more about our endpoints, parameters and response data structure in the docs at screenshotbase.com.

License

The MIT License (MIT). Please see License File for more information.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(key string)

Init sets the API key used for all requests.

func SetBaseURL

func SetBaseURL(u string)

func Status

func Status() ([]byte, error)

Status calls GET /v1/status and returns the raw body bytes.

func Take

func Take(params map[string]string) ([]byte, error)

Take calls GET /v1/take and returns image bytes. Params:

  • url: required website URL
  • format, quality, full_page, viewport_width, viewport_height: optional

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL