Action that validates URLs by checking accessibility, response codes, and basic health checks Provides detailed information about URL status, redirects, and response headers

Example

// Validate a single URL
await runAction({
ActionName: 'URL Link Validator',
Params: [{
Name: 'URL',
Value: 'https://example.com'
}]
});

// Validate multiple URLs
await runAction({
ActionName: 'URL Link Validator',
Params: [{
Name: 'URLs',
Value: ['https://example.com', 'https://google.com', 'https://invalid-url-test.com']
}]
});

// Custom timeout and options
await runAction({
ActionName: 'URL Link Validator',
Params: [{
Name: 'URL',
Value: 'https://slow-site.com'
}, {
Name: 'TimeoutMs',
Value: 10000
}, {
Name: 'FollowRedirects',
Value: false
}]
});

Hierarchy (view full)

Constructors

Properties

DEFAULT_TIMEOUT: 5000 = 5000
MAX_TIMEOUT: 30000 = 30000
MAX_URLS: 50 = 50

Methods

  • Executes URL validation for one or more URLs

    Parameters

    • params: RunActionParams<any>

      The action parameters containing:

      • URL: Single URL to validate (use this OR URLs)
      • URLs: Array of URLs to validate (use this OR URL)
      • TimeoutMs: Request timeout in milliseconds (default: 5000, max: 30000)
      • FollowRedirects: Whether to follow redirects (default: true)
      • CheckSSL: Whether to check SSL certificate validity (default: true)
      • UserAgent: Custom User-Agent string (optional)

    Returns Promise<ActionResultSimple>

    URL validation results with status, response time, and details

  • Executes the action with the provided parameters.

    Parameters

    • params: RunActionParams<any>

      The action execution parameters including context

    Returns Promise<ActionResultSimple>

    Promise resolving to the action result