Quickstart Guide


All registered users, whether on a free or paid plan, can use our Quickstart Guide to explore the full range of API functionalities with just one click.

  • Existing users: Access the Quickstart Guide below.
  • New users: Create an account and get started immediately.

Get onboarded with the Screenshotlayer API and start retrieving stock market data in just a few minutes! 

Step 1: Get your API Key

Sign up for a free Mediastack account at screenshotlayer.com and obtain your personal API Access Key

This key authenticates your requests and ensures that you have access to the API features provided by your subscription plan.

Step 2: Base URL

Capturing a snapshot using the screenshotlayer API is simple. Each API request is based on the following URL:

Step 3: Required Parameters

In order to make any API request, two required parameters - your personal access_key and the target website's URL - have to be specified:

ParameterDescription
access_keyyour personal password used to authenticate with the API - located in your Account Dashboard.
urlthe full URL (including its respective HTTP Protocol) of the website you want to request a snapshot from, e.g. http://abc.com

Important: If your target website's URL contains the special character &, please make sure to pass a URL encoded version of it into the API's url parameter. Read more »

Step 4:Optional Parameters

Based on how you wish to configure your screenshot, you can choose from a number of optional parameters:
 

ParameterDescriptionDefault
fullpageset to "1" if you want to capture the full height of the target website-
widthspecify your preferred thumbnail width in pixels1:1
viewportspecify your preferred viewport dimensions in pixels1440x900
formatset your preferred image output formatPNG
secret_keyyour secret key, an md5 hash of the target URL and your secret word. (See URL Encryption)-
css_urlattach a URL containing a custom CSS stylesheet-
delayspecify a delay before screenshot is captured (in seconds)-
ttldefine the time (in seconds) your snapshot should be cached2592000 (30 days)
forceset to "1" if you want to force the API to capture a fresh screenshot-
placeholderattach a URL containing a custom placeholder image or set to "1" to use default placeholder-
user_agentspecify a custom User-Agent HTTP header to send with your request-
accept_langspecify a custom Accept-Language HTTP header to send with your request-
exportexport snapshot via custom ftp path or using your AWS S3 user details-


 Example Query:

The following query requests a full-height screenshot of apple.com

URL Encoding

Strictly speaking, it is always safer to URL-encode your target website's URL before passing it to the API's URL parameter. However, URL encoding is required in case your target website's URL contains special characters. or &.

Example URLs:

Find below two website URL versions that must be URL-encoded to be processed correctly.

Example query:

This is how the first example URL would be passed into an API request:

Not sure about URL encoding? Have a look at this reference page »

 

Questions? Contact Sales .
Need help? Contact Support .
© 2025 APILayer. All rights reserved.