Find-HtmlDataSource
August 3, 2026 ยท View on GitHub
SYNOPSIS
Discovers static, app-state, and endpoint data sources that can be extracted without starting a browser.
SYNTAX
Workbench (Default)
Find-HtmlDataSource [-Workbench] <HtmlPageWorkbenchResult> [-DirectOnly] [-MaxSources <int>] [<CommonParameters>]
Content
Find-HtmlDataSource [-Content] <string> [-BaseUrl <uri>] [-IncludeLinkedScripts] [-IncludeExternalLinkedScripts] [-DirectOnly] [-MaxSources <int>] [-Proxy <string>] [-ProxyCredential <pscredential>] [<CommonParameters>]
Url
Find-HtmlDataSource [-Url] <uri> [-IncludeLinkedScripts] [-IncludeExternalLinkedScripts] [-DirectOnly] [-MaxSources <int>] [-Proxy <string>] [-ProxyCredential <pscredential>] [<CommonParameters>]
Path
Find-HtmlDataSource [-Path] <string> [-BaseUrl <uri>] [-IncludeLinkedScripts] [-IncludeExternalLinkedScripts] [-DirectOnly] [-MaxSources <int>] [-Proxy <string>] [-ProxyCredential <pscredential>] [<CommonParameters>]
DESCRIPTION
Discovers static, app-state, and endpoint data sources that can be extracted without starting a browser.
EXAMPLES
EXAMPLE 1
Find-HtmlDataSource -Url https://example.org/products -IncludeLinkedScripts
EXAMPLE 2
Invoke-HtmlPageWorkbench -Content $html -BaseUrl https://example.org | Find-HtmlDataSource -DirectOnly
PARAMETERS
-BaseUrl
Base URL used to resolve relative endpoints when Content or Path is used.
Type: Uri
Parameter Sets: Content, Path
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Content
HTML content to inspect.
Type: String
Parameter Sets: Content
Aliases: None
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-DirectOnly
Returns only sources that HtmlTinkerX can extract directly.
Type: SwitchParameter
Parameter Sets: Workbench, Content, Url, Path
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IncludeExternalLinkedScripts
Allows linked-script inspection to download cross-origin scripts.
Type: SwitchParameter
Parameter Sets: Content, Url, Path
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-IncludeLinkedScripts
Downloads same-origin linked JavaScript files and inspects them for endpoints.
Type: SwitchParameter
Parameter Sets: Content, Url, Path
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-MaxSources
Maximum number of sources to return.
Type: Int32
Parameter Sets: Workbench, Content, Url, Path
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Path
Path to a local HTML file to inspect.
Type: String
Parameter Sets: Path
Aliases: File
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Proxy
Proxy server address used when downloading by URL or inspecting linked scripts.
Type: String
Parameter Sets: Content, Url, Path
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProxyCredential
Credentials used with the proxy server.
Type: PSCredential
Parameter Sets: Content, Url, Path
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Url
URL of the page to download and inspect.
Type: Uri
Parameter Sets: Url
Aliases: Uri
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Workbench
Page workbench result to inspect.
Type: HtmlPageWorkbenchResult
Parameter Sets: Workbench
Aliases: None
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
HtmlTinkerX.HtmlPageWorkbenchResultSystem.String
OUTPUTS
HtmlTinkerX.HtmlBrowserlessDataSource
RELATED LINKS
- None