Get website screenshot using rafled API

rafled Screenshot API allows you to get website screenshots. You may pass optional parameters such as screen width, height, and User Agent to get screenshots tailored to your needs.

Request URI

https://www.rafled.jp/api/website/screenshot

Rate Limiting

DurationRequests
MonthlyUnlimited
Per Minute60 Requests

The following response headers detail your limits.

HeadersRemarks
X-RateLimit-Limit# of requests you can make within a minute
X-RateLimit-RemainingTotal number of remaining requests

Caching

By default, we cache all the screenshots for up to 1 week. The following response headers will detail the cache information.

HeaderRemarks
ExpiresCache Expiry Date
X-Cache-StatusIf the cache is successfully retrieved

URL Parameters

The URL Parameters which you can pass to the application to get an appropriate response.

ParameterTypeDefault Value
urlstring | requirednone
widthinteger | optional1920
heightinteger | optional1080
userAgentstring | optionalMozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.3.5029.61 Safari/537.36

Responses

ResponseResponse TypeRemarks
200image/pngSuccessfully returned screenshot.
400application/jsonBad Request. When requested parameters were not supplied.
5xxInternal Server Error

Examples

cURL

curl https://www.rafled.jp/api/website/screenshot?url=https://example.com&width=800&height=400&userAgent=foo

HTML

<img src="https://www.rafled.jp/api/website/screenshot?url=https://example.com&width=800&height=400&userAgent=foo">