# Getting Started

## API Access Key & Authentication

After signing up, every user is assigned a personal API Access Key - a unique "password" used to authenticate with the API.

To call the screenshotlayer API, simply append your access\_key as a parameter to the base URL:

```javascript
http://api.screenshotlayer.com/api/capture?access_key=YOUR_ACCESS_KEY   
```

You can [sign up for a free Access Key here](https://screenshotlayer.com/pricing/?utm_source=DocumentationPage&utm_medium=Referral). Our Free Plan offers up to 100 monthly snapshots. Paid plans provide larger request volumes and a full stack of advanced features.

## HTTPS - Secure Datastreams

All Customers may establish a secure connection via 256-bit HTTPS (industry-standard SSL) to the screenshotlayer API, ensuring encrypted datastreams between server and client. To connect securely, simply append an s to the HTTP Protocol.

```javascript
https://api.screenshotlayer.com/api/capture?access_key=YOUR_ACCESS_KEY  
```

## Rate Limits

Requests to the API are rate-limited based on your current subscription plan:

| Subscription Plan | Rate Limit |
| --- | --- |
| Free | 2 Requests / Minute |
| Basic | 30 Requests / Minute |
| Professional | 45 Requests / Minute |
| Enterprise | 45 Requests / Minute |

> **Important:** In order to ensure maximum API performance, we recommend Basic, Professional and Enterprise Plan users to limit their usage to a maximum of 1 API request per 2 seconds.

If your rate limit for a given minute has been exceeded, the API will return an error carrying the type `rate_limit_reached`. This error is listed in the [API Error Codes](https://docs.apilayer.com/screenshotlayer/docs/getting-started?preview=product#api-error-codes) section below.

## API Error Codes

If your query fails, the screenshotlayer API will return a 3-digit error code, an internal error type, and a plain text "`info`" object containing suggestions for the user.

Find below an example error - triggered when the user did not provide a valid API Access Key:

```javascript
{
  "success": false,
  "error": {
    "code": 104,
    "type": "invalid_access_key",
    "info": "You have not supplied a valid API Access Key. [Technical Support: support@apilayer.com]"    
  }
}           
```

### **Common API errors:**

| Type | Message | Description |
| --- | --- | --- |
| 404 | "404\_not\_found" | User requested a resource which does not exist. |
| 101 | "missing\_access\_key" | User did not supply an Access Key. |
| 101 | "invalid\_access\_key" | User entered an invalid Access Key. |
| 103 | "invalid\_api\_function" | User requested a non-existent API Function. |
| 104 | "usage\_limit\_reached" | User has reached or exceeded his Subscription Plan's monthly API Request Allowance. |
| 210 | "invalid\_url" | User provided an invalid website URL. |
| 105 | "invalid\_quality\_value" | User subscription plan does not support the requested value. |
| 102 | "inactive\_user" | The user's account is not active. User will be prompted to get in touch with Customer Support. |
| 310 | "secret\_key\_required" | User has to provide a secret key in order to access the requested resource. |
| 311 | "invalid\_secret\_key" | User provided an invalid secret key. |
| 410 | "invalid\_viewport\_size" | User provided invalid viewport dimensions (required format: width x height, e.g. 1440x900). |
| 411 | "viewport\_too\_large" | The provided viewport is too large (max. viewport dimensions: 5000x5000). |
| 420 | "invalid\_thumbnail\_width" | User provided an invalid thumbnail width (required format: integer). |
| 510 | "invalid\_css\_url" | User provided an invalid CSS file URL. |
| 511 | "css\_download\_failed" | System failed downloading the provided CSS file. |
| 512 | "css\_too\_large" | The provided CSS file is too large in size. (max-size: 100kB) |
| 610 | "invalid\_delay\_time" | User provided an invalid delay time. (required format: integer) |
| 611 | "delay\_time\_too\_long" | The provided delay time is too long. (max. length: 20 seconds) |
| 620 | "invalid\_ttl" | User provided an invalid TTL (required format: integer). |
| 621 | "ttl\_too\_short" | The provided TTL is too short (mininum: 300 seconds) |
| 622 | "ttl\_too\_long" | The provided TTL is too long (maximum: 2592000 seconds) |
| 710 | "failed\_loading\_placeholder\_img" | System failed downloading the provided placeholder image. |
| 810 | "invalid\_export\_path" | User provided an invalid export path. (See [AWS S3 & FTP Export](https://docs.apilayer.com/screenshotlayer/docs/api-features?preview=product#export-to-aws-s3)) |
| 820 | "invalid\_output\_format" | The provided output format is invalid (available formats: PNG, JPG, GIF). |
| 910 | "failed\_showing\_screenshot" | System failed displaying the requested screenshot. |
| 102 | "inactive\_user" | The user's account is not active. User will be prompted to get in touch with Customer Support. |
| 106 | "rate\_limit\_reached" | User has exceeded the maximum allowed rate limitation and is referred to the "Rate Limits" section of the API Documentation. |
| 999 | "unexpected\_error" | An unexpected error ocurred. |

[← Quickstart Guide](https://docs.apilayer.com/screenshotlayer/docs/quickstart-guide)

[Playground →](https://docs.apilayer.com/screenshotlayer/docs/playground)

* * *

Chat with APILayer´s team on [Discord](https://discord.com/invite/hgjA78638n).

Questions? [Contact Sales](https://screenshotlayer.com/contact) .

Need help? [Contact Support](https://screenshotlayer.com/contact) .

© 2026 APILayer. All rights reserved.
