AI agents: the setup steps for Screenshotlayer are in the Agents section of this page (#agents) and as Markdown at /products/screenshotlayer/agents.md. Index of every APILayer API: https://apilayer.com/llms.txt

Screenshotlayer

Operational

Powerful website screenshot API · by APILayer

  • Marketing
  • PNG · JPEG · GIF
  • 50+ customization options
  • 99.9% reported API uptime

Free plan · 100 requests / month · no card

Playground tab is switched off on the live page (AP-6510). Delete this widget to turn it back on.

Overview

API info

Capture high-quality screenshots of any website with a simple, developer-friendly API. Screenshotlayer turns any URL into a professionally rendered image in seconds. Capture full web pages, control viewport dimensions, inject custom CSS, render modern web technologies, and deliver screenshots directly to your application.

Example request

GETShellcurl
curl --request GET \
  --url "https://api.apilayer.net/screenshotlayer/api/capture?access_key=YOUR_ACCESS_KEY&url=https://example.com"
Run it in the Playground

Example response

200 - OK
{
    "success": true,
    "url": "https://example.com",
    "image_url": "https://cdn.screenshotlayer.com/..."
}

Everything you need for powerful website screenshots

  • Easy to integrate

    Generate website screenshots through a simple API request. Integrate screenshot generation into your website, SaaS platform, backend service, monitoring system, or automated workflow without building your own browser-rendering infrastructure.

  • High-quality rendering

    Capture crisp website screenshots using a powerful rendering engine designed to process modern web content. Screenshotlayer supports technologies including CSS3, HTML5, Webfonts, Graphs, Canvas, and SVG.

  • Full-page screenshots

    Capture the complete height of a website rather than limiting your screenshot to the visible browser viewport. Create full-page previews, archives, reports, and website snapshots with a single API request.

  • Custom viewport control

    Specify the viewport dimensions you need or emulate common desktop, tablet, and mobile screen sizes. Create screenshots optimized for different devices and layouts.

  • Retina & 2x support

    Generate higher-resolution screenshots for displays and applications that require sharper imagery. Retina/2x support is available on paid plans.

  • WebP support

    Generate WebP images with quality settings up to 100% on eligible paid plans, helping you optimize image quality and file size for modern web applications.

  • Custom CSS

    Inject your own CSS stylesheet into the target page before the screenshot is captured. Modify colors, hide elements, change layouts, or create application-specific visualizations without changing the original website.

  • Flexible timing controls

    Control when a screenshot is captured by specifying a rendering delay, configuring cache behavior, or forcing a fresh page capture.

  • Export to S3 or FTP

    Send generated screenshots directly to your AWS S3 bucket or a custom FTP server path on supported plans, making it easy to integrate screenshot generation into existing storage and publishing workflows.

  • CDN-powered delivery

    Generated screenshots are stored through Screenshotlayer's CDN and can be retrieved quickly after generation. Existing snapshots can be delivered without requiring another screenshot-generation request.

  • 99.9%Reported API uptime
  • 50+Customization options
  • 3Image formats
  • 40Dedicated workers

Build smarter with automated screenshots

  • See Screenshotlayer in action

    Turn website screenshots into a building block for your applications, workflows, analytics, and customer experiences.

    Explore Use Cases
  • Everything you need to integrate in minutes

    Learn how to capture websites, configure viewport dimensions, create full-page screenshots, inject CSS, control rendering timing, select image formats, and export screenshots to external storage.

    View Documentation

Pricing

Flexible plans for every stage of growth

Whether you're testing automated screenshots, building a website preview service, or processing high-volume image requests, choose the plan that matches your requirements.

MonthlyYearlySave up to 15%

Free

For testing and side projects

$0forever

No credit card

No overage charges

Get Free API Key

100 requests / month

Includes:

  • Use: Non-commercial use
  • CDN support
  • Customization: Advanced customization
See all 10 features

Starter

For your first live product

$19.99/ month

Billed monthly

Then $0.007996 per extra request, up to 20,000 extra a month

Subscribe Now

10,000 requests / month

Everything in Free, plus:

  • Use: Commercial use
  • Customization: Full customization
  • Retina/2x support
  • WebP support up to 100% quality

+ 4 more

See all 10 features
Most popular

Professional

For growing traffic

$59.99/ month

Billed monthly

Then $0.0079986667 per extra request, up to 60,000 extra a month

Subscribe Now

30,000 requests / month

Everything in Starter, plus:

  • Dedicated workers: 20
  • FTP & S3 export
  • 3× the requests of Starter
See all 10 features

Enterprise

For high volume

$149.99/ month

Billed monthly

Then $0.0079994667 per extra request, up to 150,000 extra a month

Subscribe Now

75,000 requests / month

Everything in Professional, plus:

  • 2.5× the requests of Professional
  • Dedicated workers: 40
See all 10 features

Custom

Need more? We offer custom Enterprise pricing for unlimited requests, dedicated technical support, and more: commercial use, CDN delivery, S3 & FTP export, dedicated infrastructure and custom integrations.

Contact Sales

Compare all features

10 featuresFree$0Get free keyStarter$19.99/moSubscribeProfessional$59.99/moSubscribeEnterprise$149.99/moSubscribe
UseNon-commercial useCommercial useCommercial useCommercial use
CDN support
CustomizationAdvanced customizationFull customizationFull customizationFull customization
Retina/2x support–
WebP support up to 100% quality–
Dedicated workers–102040
256-bit HTTPS encryption–
FTP & S3 export––
Support–Standard supportStandard supportStandard support
Overage support–
Price per extra request after the monthly limitNone$0.007996$0.0079986667$0.0079994667

Playground

Try the API

Build a request in your browser and see the response it returns.

GET
fullpage Optional

Add your free API key to run it from your code.

curl
200 - OK

      
    

Agents

Agents: start here

Steps for AI coding agents that add Screenshotlayer to a project.

  1. 1Get an API key

    A person creates the account: an agent cannot sign up. Sign up at app.apilayer.com and subscribe to Screenshotlayer. The Free plan includes 100 requests / month and needs no credit card.

    Copy the API key from the APILayer dashboard and give it to the agent as an environment variable (step 2).

  2. 2Keep the key out of code

    Read the key from an environment variable named APILAYER_ACCESS_KEY. Do not write the key into source code, commit it to git, or paste it into a chat.

    Call Screenshotlayer from server code. The key travels in the request URL, so a request sent from a browser shows the key to every visitor.

    .env
    # add .env to .gitignore
    APILAYER_ACCESS_KEY=your_api_key
  3. 3Make the first request

    Base URL
    https://api.apilayer.net/screenshotlayer/api
    Auth
    access_key query parameter
    Formats
    PNG, JPEG, GIF
    Endpoints
    • /capture Capture
    Shell
    curl "https://api.apilayer.net/screenshotlayer/api/capture?access_key=$APILAYER_ACCESS_KEY&url=https://example.com"

    The API info tab shows the response this request returns.

  4. 4Check the plan before you use a feature

    Each plan adds features to the plan before it. Check that the account's plan includes a feature before writing code that uses it.

    PlanRequests / monthAdds
    Free100Use: Non-commercial use, CDN support, Customization: Advanced customization
    Starter10,000Use: Commercial use, Customization: Full customization, Retina/2x support, WebP support up to 100% quality, Dedicated workers: 10, 256-bit HTTPS encryption, Support: Standard support, Overage support
    Professional30,000Dedicated workers: 20, FTP & S3 export
    Enterprise75,000Dedicated workers: 40

    Prices are in the Pricing tab.

  5. 5Use the machine-readable docs

FAQs

Need clarity?

Here are the answers you might be seeking

Data & features

01.What is Screenshotlayer?

Screenshotlayer is a lightweight REST API built to deliver high quality PNG, JPEG & GIF website screenshots at unparalleled speeds and through a simple interface. Its architecture is focused on ease of use and integration, making for a high level of compatibility with any application, framework and programming language.

02.Who runs the Screenshotlayer API?

Screenshotlayer is a product built and maintained by APILayer, the company behind 17 developer APIs, including Pdflayer, Scrapestack and IPstack. You can learn more on the Why choose APILayer page.

03.How does the Screenshotlayer rendering engine work?

In order to ensure the highest possible level of image resolution, our API relies on a powerful rendering engine capable of processing, storing and returning all sorts of website content within just a few seconds. Each screenshot is assigned to a separate and unique server entity, allowing us to provide an unparalleled level of image quality and speed for each API request, even when capturing the full height and width of a website.

04.Does the API support Graphs, Canvas, Webfonts or CSS3?

Yes, our rendering engine is capable of processing all of the above. You can simply try it out by capturing a screenshot of a website using webfonts, a site using CSS3, and so on.

05.What are "dedicated workers"?

Pricing is based on a subscription plan's monthly screenshot request volume, supported features and the number of "dedicated workers" provided. A "dedicated worker" refers to a unique server entity being assigned the task of capturing one screenshot only. Subsequently, if your subscription plan features 10 dedicated workers, our API enables you to capture, process and store 10 concurrent website snapshots at the same time.

Each of the mentioned server entities works independently, allowing us to provide you with the highest possible processing speed for each API request you make.

06.How do I capture a website screenshot?

Send a target URL and your API access key to the Screenshotlayer capture endpoint. The API processes the website and returns the resulting screenshot as an image URL.

07.Can Screenshotlayer capture an entire web page?

Yes. Screenshotlayer's rendering engine can capture the full height and width of a website rather than limiting the image to the visible viewport. Pass fullpage parameter in your API requests to capture the full page screenshot.

08.Does Screenshotlayer support mobile screenshots?

Yes. You can control the viewport and generate screenshots corresponding to mobile devices, tablets, desktops, or custom dimensions.

09.Can I customize the screenshot?

Yes. Screenshotlayer provides extensive customization options for dimensions, viewport, CSS, timing, caching, image format, and other screenshot settings.

10.Can I inject custom CSS?

Yes. You can specify a custom CSS stylesheet that is injected into the target website before the screenshot is captured.

11.Can I control when the screenshot is captured?

Yes. Screenshotlayer supports capturing delays, custom cache times, and forced refreshes, allowing you to control how and when website content is rendered.

12.Does Screenshotlayer support WebP?

Yes. WebP support with quality settings up to 100% is available on paid subscription plans.

13.Does Screenshotlayer support Retina displays?

Yes. Retina/2x support is included with paid plans.

14.Are generated screenshots stored?

Yes. Screenshotlayer stores generated snapshots through its CDN, allowing existing screenshots to be retrieved quickly without generating them again.

API access

01.Is Screenshotlayer secure?

Paid plans provide 256-bit HTTPS encryption for API connections.

02.How do I get an API Access Key?

Every registered user is assigned a personal Access Key, a unique "password" that can be used to access and query the Screenshotlayer API. If you are logged in, you can find it in your Account Dashboard and in all interactive links contained in the API's Documentation.

In your Account Dashboard you can reset your Access Key at any given time.

In order to make an API Request, you are required to attach your Access Key to the API's base URL, e.g: https://api.apilayer.net/screenshotlayer/api/capture?access_key=YOUR_ACCESS_KEY

03.What is the API's uptime?

The Screenshotlayer API's system status is being closely monitored around the clock. Since every effort is made to ensure the highest possible level of consistency, we are happy to announce that our API's uptime is at around 99.9%. At the current stage we are not offering any public statistics, but we will be happy to provide you with recent uptime reports - ask us »

04.Which image output formats are supported?

Using the API's format parameter, you may request the Screenshotlayer API to output your snapshot in three different file formats: PNG (default), JPEG or GIF.

See the API's Documentation for details.

05.Can I set custom HTTP headers?

Yes. You may request both HTTP User-Agent and Accept-Language headers.

06.Are there any direct options to export my snapshots?

Yes. You may request the API to pass your snapshots on to an AWS S3 Bucket or to a custom FTP path of your choice. S3 and FTP export are available on the Professional and Enterprise plans.

See the API's Documentation for details.

07.Can I request thumbnails?

Yes. Using the API's width parameter, you may generate a thumbnail of the target URL using a custom width (in pixels).

See the API's Documentation for details.

08.Can I set a custom period for my snapshots to be cached?

Yes. By default, website screenshots are cached for 2,592,000 seconds (30 days). Using the API's ttl parameter, you may specify a custom TTL (time-to-live) lower than 2,592,000 seconds.

See the API's Documentation for details.

09.Can I specify a capturing delay to let animations/effects finish loading?

Yes. Using the API's delay parameter, you may request the API to wait for a specified number of seconds before capturing your screenshot.

See the API's Documentation for details.

Plans & pricing

01.Is there a free plan?

Yes. The Free plan provides 100 snapshots per month and is intended for non-commercial use.

02.What is the difference between Free and Paid Subscriptions?

The Free Plan is set out to be a "trial version" without a time limit, offering a volume of 100 monthly snapshots and a limited set of features.

Paid Subscription Plans feature significantly higher API Request volumes, ensure secure datastreams via 256-bit HTTPS Encryption, include unlimited and prioritised technical support, and offer a variety of must-have API functionalities.

03.Which Subscription Plan fits my needs?

In order to test the API and to get an idea of the product, you can simply sign up for the Free Plan.

As soon as you or your application requires more than 100 snapshots per month and more professional API functionality, you would be well-advised to sign up for one of the paid Subscription Plans, starting at only USD 19.99 per month, or at up to 15% Discount - if you decide to pay annually.

04.Which payment methods are supported?

Payments can be made via Credit Card (Visa, MasterCard, Discover, Diner's Club). You can change your payment method at any given time in the Payment section of your Account Dashboard.

05.Can I also pay yearly?

Yes. If you choose annual billing, the total price of your subscription plan will be up to 15% lower than the total amount you would pay with a monthly payment frequency.

06.How do I cancel/downgrade?

You can initiate a cancellation or downgrade by selecting a new plan and providing at least one reason for your decision. The customer service team will cancel or downgrade your plan. Downgrades are not effective immediately; your premium subscription will remain active until the end of the current billing period.

07.How do I change between monthly and yearly billing?

To change your subscription from monthly to yearly billing, submit a request on the Contact Us page following these steps:

Step 1: Sign in to your account.

Step 2: Go to the Contact Us page.

Step 3: Fill out the form and choose the “Sales” category for this request.

Step 4: In the text box, include your specific request, for example “Change from Monthly to Yearly subscription.”

Overages

01.What happens if I exceed my API Request volume?

Users will be automatically notified via e-mail and on their Account Dashboard once at least 75%, 90%, and 100% of their monthly API Request allowance has been reached. After reaching 100% of the allowance, overages fees will apply so we make sure you won’t experience any disruptions and your website/application will keep running smoothly. You can learn more about overages billing here.

02.What is an overage?

An overage occurs when you go over a quota for your API plan. When you reach your API calls limit, we will charge you a small amount for each new API call so we can make sure there will be no disruption in the service we provide to you and your website or application can continue running smoothly.

Prices for additional API calls will vary based on your plan. See the table below for prices per call and an example of an overage billing.

PlanMonthly priceRequests / monthPrice per extra requestExtra requestsOverage cost
Starter$19.9910,000$0.00799610,000$79.96
Professional$59.9930,000$0.007998666710,000$79.99
Enterprise$149.9975,000$0.007999466710,000$79.99

Note: For complete details, please refer to the overages documentation here.

03.Why does APILayer have overage fees?

Overage fees allow customers to continue using an API once a quota limit is reached. We want to make sure your website or application continues running at all times, so charges will apply if you go over your monthly quota limit. If you notice you are going over your quota limit each month, look on your dashboard for an upgraded plan to help with larger request limits.

04.How do I know if I will be charged for overages?

When you are close to reaching your API calls limit for the month, you will receive an automatic notification (at 75%, 90%, and 100% of your monthly quota). You can keep track of your quota usage to prevent overages by tracking the number of API calls you make and checking the dashboard for up-to-date usage statistics.

05.How will I be charged for my API subscription?

You will be charged for your monthly subscription plan, plus any overage fees applied. Your credit card will be billed after the billing period has ended.

06.What happens if I don't have any overage fees?

In this case, there will be no change to your monthly invoice. Only billing cycles that incur overages will see any difference in monthly charges. The Business Continuity plan is an insurance plan to be used only if needed and guarantees your end users never see a drop in coverage from you.

07.What if I consistently have more API calls than my plan allows?

If your usage consistently surpasses the set limits each month, you may face additional charges for the excess usage. Nevertheless, as your monthly usage reaches a certain threshold, it becomes more practical to consider upgrading to the next plan. By doing so, you ensure a smoother and more accommodating experience for your growing customer base. Find out about our pricing plans here.

08.I would like to upgrade my plan. How can I do that?

You can easily upgrade your plan by going to your Dashboard and selecting the new plan that would be more suitable for your business needs. Additionally, you may contact your Account Manager to discuss a custom plan if you expect a continuous increase in usage.

Still have a question?

Contact support