Updated Jul 14, 2026

Discovery

LinkFinder: pull API routes out of JavaScript

Discover endpoints and parameters inside JavaScript files.

Agent

overview

What linkfinder does

LinkFinder takes a URL or local JavaScript file via -i, beautifies the source, then 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

use cases

Where linkfinder fits

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

6 inputs
NameTypeFlagDescription
input-urlSTRING-iA URL to fetch and analyze for endpoints.
input-fileFILE-iA local JavaScript file to analyze.
analyze-entire-domainBOOLEAN-dEnumerate and analyze every JavaScript file found on the domain.
filter-regexSTRING-rRegex to filter found endpoints, e.g. ^/api/.
use-burp-save-selected-fileBOOLEAN-bInput a Burp 'Save selected' file containing multiple JS files.
cookiesSTRING-cCookies to add to the request when fetching a URL.

Showing key inputs. linkfinder exposes 6 inputs in total.

example

Run linkfinder

linkfinder · command
# extract API endpoints from every JS file under a domainpython linkfinder.py -i https://example.com -d -r ^/api/ -o cli
sample output
/api/v1/session/api/v1/users/{userId}/api/v2/orders/graphqlhttps://api.example.com/v1/notifications/static/js/vendor.4f2a9c.js/assets/settings.jsonwss://ws.example.com/stream/internal/metrics

guidance

Choosing linkfinder

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.

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 questions

It beautifies the JavaScript with jsbeautifier, then runs a large regular expression to pull out paths, API routes, filenames, and parameters. Regex is faster to wire than a full parser and surfaces strings HTML crawlers never see.

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.