all-about-apikey/screenshot-api
Muhammad Daffa 7372a52709 Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00
..
README.md Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00

README.md

Screenshot API

Description

Create pixel-perfect website screenshots

Example Request

  • Curl
curl "https://shot.screenshotapi.net/screenshot?token={{token}}&url=https://example.com"
  • Raw
GET /screenshot?token={{token}}&url=https://example.com HTTP/1.1
Host: shot.screenshotapi.net

Response

  • Success
{
    "screenshot":"https://screenshoapi.....",
    "url":"https://example.com",
    "created_at":"2022-06-17T16:06:29.435Z",
    "is_fresh":true,
    "token":"{{token}}",
    "ttl":"2022-07-17T16:06:25.255Z"
}
  • Error
{
    "error":"Unuathorized 2"
}

Regex

[A-Z0-9]{7}-[A-Z0-9]{7}-[A-Z0-9]{7}-[A-Z0-9]{7}

Example API key

03S7N6P-VDGM7JT-Q6F7XQW-31K8Q32