Discovery
LinkFinder: pull API routes out of JavaScript
LinkFinder is an open-source Python script that discovers endpoints and their parameters in JavaScript files, using jsbeautifier and a large regular expression to extract full, absolute, and relative URLs for penetration testers and bug hunters.
installgit clone https://github.com/GerbenJavado/LinkFinder.gitcd LinkFinder && pip3 install -r requirements.txtpython setup.py installdocker pull quay.io/trickest/linkfinder:095bb62
commit 095bb62 on Trickest · Python · MIT license
Free plan: 1 user, 3 execution slots, no card.
overview
What linkfinder does
LinkFinder takes a URL or local JavaScript file via -i and regex-extracts paths, API routes, and parameters that HTML crawlers miss. SPA bundles often hide navigation here.
Enable -d to enumerate JavaScript under a domain. Filter with -r (for example ^/api/). Feed a Burp Save selected export with -b. Add -c when the fetch needs cookies.
Slot it after a crawler that collected scripts, then hand routes to httpx or a scanner. Prefer LinkFinder for a light regex sweep; use jsluice when you want tree-sitter parsing and secret extraction too. Trickest runs it as a managed Discovery node.
source github.com/GerbenJavado/LinkFinder · commit 095bb62 on Trickest
image quay.io/trickest/linkfinder:095bb62
use cases
linkfinder use cases
Recover endpoints from JavaScript
Analyze a script to surface API routes and paths defined in JavaScript that never appear as links in the rendered HTML.
Sweep every JS file on a domain
Use the -d toggle to enumerate all JavaScript under a target and extract endpoints from each one in a single pass.
Process a Burp script export
Feed a Burp 'Save selected' file of multiple scripts with -b so LinkFinder analyzes the whole bundle captured during a manual session.
Filter to the routes that matter
Apply a regex with -r, such as ^/api/, so the output keeps only the endpoints worth probing instead of every string it matched.
reference
linkfinder inputs and flags
| Name | Type | Flag | Description |
|---|---|---|---|
| input-url | STRING | -i | A URL to fetch and analyze for endpoints. |
| input-file | FILE | -i | A local JavaScript file to analyze. |
| analyze-entire-domain | BOOLEAN | -d | Enumerate and analyze every JavaScript file found on the domain. |
| filter-regex | STRING | -r | Regex to filter found endpoints, e.g. ^/api/. |
| use-burp-save-selected-file | BOOLEAN | -b | Input a Burp 'Save selected' file containing multiple JS files. |
| cookies | STRING | -c | Cookies to add to the request when fetching a URL. |
Showing key inputs. linkfinder exposes 6 inputs in total.
example
linkfinder command examples
# run on 2026-12-02 against https://trickest.com, Trickest's own site, in quay.io/trickest/linkfinder:095bb62
python linkfinder.py -i https://trickest.com -o cli # 223 links in 1.6 s; 11 shown
# more patterns (not run): every JS file under a domain, API paths only
python linkfinder.py -i https://example.com -d -r ^/api/ -o cli/_next/static/chunks/431bw722fec3m.js
/llms.txt
/developers/llms.txt
https://trickest.com/index.md
/blog/introducing-agents
/pricing
/demo
https://trickest.io/signup
/platform/agents
/platform/workflows
/docs/developer-tools/mcpguidance
linkfinder vs alternatives
Use LinkFinder when you want a quick regex sweep of JavaScript for endpoints and parameters. For parser-accurate extraction that also catches concatenated URLs and secrets, jsluice is the structural sibling.
| Tool | Pick it when |
|---|---|
| jsluice | Parses JavaScript with tree-sitter for cleaner results and secrets. LinkFinder is the lighter regex approach. |
| getjs | Collects JavaScript files from a target. Run it first, then point LinkFinder at the gathered scripts. |
| secretfinder | Sibling regex script tuned for secrets in JS rather than endpoints. Pair them for routes and credentials. |
faq
linkfinder FAQ
related
More Discovery tools
cariddi
Crawl a domain list and scan responses for endpoints, secrets, tokens, and juicy files.
crawlergo
Browser-driven crawler that harvests requests for downstream scanners.
dirsearch
Web path scanner.
feroxbuster
Recursive content discovery with smart defaults and rich response filters.
gittools-dumper-extractor
Download an exposed .git and rebuild the working tree in one pass.
jsluice
Extract URLs, paths, and secrets from JavaScript with a syntax tree.
Run linkfinder yourself
A target feeds katana, which crawls and collects JavaScript, then LinkFinder extracts the endpoints and writes them as a queryable output.
Facts on this page come from the live Trickest tool library.