Updated Jul 15, 2026

Discovery

Mine API paths from a list of JS URLs

LinkFinder over a file of JavaScript URLs, with -r filter and -c cookies.

Agent

overview

What mass-linkfinder does

mass-linkfinder takes a urls-file of JavaScript URLs and runs LinkFinder on each one. Output is a FILE and FOLDER of endpoints and parameters. Optional -r keeps only matching paths; -c attaches cookies when scripts need a session.

Reach for it after a JS collector such as getjs has already listed the bundles. SPA and bundled apps hide API routes in script bodies that HTML crawlers never see.

Trickest runs it as a managed Discovery node. Prefer plain linkfinder for a single file. Prefer golinkfinder when you want a Go reimplementation on one target at a time.

source github.com/GerbenJavado/LinkFinder

use cases

Where mass-linkfinder fits

Mine endpoints from a target's JavaScript

Collect every JS URL a site loads, then run mass-linkfinder over the whole list to recover API routes and paths defined in bundled script that a static crawler never reaches.

Surface parameters worth fuzzing

LinkFinder reports both endpoints and the parameters they take, so the output seeds parameter-fuzzing and content-discovery stages with real names instead of guesses.

Read authenticated scripts

Pass session cookies so the wrapper fetches JS bundles served only to logged-in users, exposing routes that anonymous crawling leaves invisible.

Keep the output focused with a regex

Filter matches against a pattern like ^/api/ so the result holds only the endpoint class you want, ready to hand to a prober or scanner without manual cleanup.

reference

mass-linkfinder inputs and flags

3 inputs
NameTypeFlagDescription
urls-fileFILE·List of JS URLs to analyze, one per line.
filter-regexSTRING-rRegEx for filtering found endpoints, e.g. ^/api/ to keep only API paths.
cookiesSTRING-cCookies to add to each request, for fetching authenticated JavaScript.

Showing key inputs. mass-linkfinder exposes 3 inputs in total.

example

Run mass-linkfinder

mass-linkfinder · command
# extract endpoints from every JS URL in the list, keep only API pathsmass-linkfinder -c "session=6f1a2b; csrf=9b2c4d" -r '^/api/' js-urls.txt
sample output
/api/v1/users/api/v1/login/api/v2/orders?id=/api/v2/accounts/{account_id}/internal/health/admin/config.json/graphql/static/js/settings.chunk.js

guidance

Choosing mass-linkfinder

Use mass-linkfinder when you already have a list of JavaScript URLs and want endpoints and parameters from all of them in one pass. It does not collect URLs. Run getjs first. For one file, use linkfinder.

linkfinder

Single-file LinkFinder. Use when you have one script, not a list.

golinkfinder

Go reimplementation of the same idea on one target at a time.

getjs

Collects JS URLs. Run it before mass-linkfinder, not instead of it.

faq

mass-linkfinder questions

It hands each JS URL in your urls-file to LinkFinder, which beautifies the script and runs a path-oriented regex. API routes, relative links, and parameters surface even when they never appear in HTML.

Run mass-linkfinder yourself

A target's JS URLs feed getjs, which collects the script links and passes them to mass-linkfinder, which extracts every endpoint and writes them as a queryable output.

Facts on this page come from the live Trickest tool library.