Skip to main content Link Menu Expand (external link) Document Search Copy Copied

checkLink

The checkLink action checks if a URL returns an acceptable status code from a GET request. This action is useful for verifying that a hyperlink or image URL is valid.

You can also specify

  • an origin to navigate to a URL relative to a specific path.
  • statusCodes to set acceptable HTTP status codes.

For comprehensive options, see the checkLink reference.

Examples

{
  "description": "Check if Google is up.",   
  "action": "checkLink",
  "url": "https://www.google.com"
}

{
  "description": "Check if Google is up with extra status codes.",
  "action": "checkLink",
  "url": "https://www.google.com",
  "statusCodes": [
    200,
    201,
    202
  ]
}
{
  "description": "Check if Google is up with an origin.",
  "action": "checkLink",
  "url": "/search",
  "origin": "https://www.google.com"
}