Web Page Screenshot API

Description

Get a screenshot of a web page

Pricing per Call: 0.001$
For learn the packages and usage details of the services, go to the pricing page.

End Points

post/screenshotsWithUrl

Get a screenshot of the desired properties from the given url

Parameters
FieldDescriptionTypeHeaderRequired
urlURL to get screenshottext
delayHow long the screenshot will be taken (default = 2500)int
formatFormat selection (Jpeg (default) or Png)text
mobileMobile version ( mobile = false (default) )boolean
Example
Request
{
  "uri": "https://api.collectapi.com/website_info/screenshotsWithUrl",
  "body": {
    "url": "www.google.com"
  },
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": {
    "image": ".../images/url_screenshots.jpg"
  }
}
post/screenshotsWithJson

Get the screenshot and html view of the html table page according to the given json format data

Parameters
FieldDescriptionTypeHeaderRequired
tableJSon object for creating html tablejson
Example
Request
{
  "uri": "https://api.collectapi.com/website_info/screenshotsWithJson",
  "body": {
    "json_table": [
      {
        "name": "Ahmet Yılmaz",
        "firstexam": "85",
        "secondexam": "90"
      },
      {
        "name": "Mehmet Kılıç",
        "firstexam": "90",
        "secondexam": "70"
      }
    ]
  },
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": {
    "image": ".../images/json_table_screenshots.jpg",
    "html_table_url": ".../html/json_table.html"
  }
}