Screenshot API for URLs and HTML
Take a screenshot of a website, URL, or raw HTML using REST API
There are a number of good reasons why you need to take a screenshot of many websites in bulk. One common use case is if you are doing market research and want to analyze the website of different companies in the industry. Another is if you need a daily screenshot of a website that shows some statistics or information and you need to archive that for posterity. Whatever your task is, API2PDF has an endpoint that you can use to take screenshots of websites and raw HTML using Headless Chrome under the hood.
Create an account and check out our documentation to get started for free.
We also offer client libraries in popular languages:
Otherwise, you can write very simple code against the REST API. Below is a simple screenshot example using Python.
#python example
import requests
import json
api_key = 'your-api-key'
endpoint = 'https://v2.api2pdf.com/chrome/image/url'
url = 'https://www.api2pdf.com'
api_response = requests.post(endpoint, json={'url': url }, headers={'Authorization': api_key})
print(json.loads(api_response.content)['FileUrl'])
We run our service on Google Cloud Run which offers some huge benefits. First, we do not have any rate limits, unlike other services out there. Hit the API as many times as you wish. And second, the cost to service the API is substantially less, resulting in much lower fees than competing services.
Our API is also available as a standalone docker container that you can run in your own cloud environment. Contact us if you are interested in learning more.