Fetch and normalize parameterized URLs from the Internet Archive Wayback CDX API (OSINT-friendly).
Project description
wayparam
wayparam is a modern, cross-platform CLI tool to fetch historical URLs from the Internet Archive Wayback CDX API, filter out “boring” URLs (static assets), and normalize query parameters so you can focus on endpoints that actually matter.
This project is inspired by ParamSpider (same overall goal, completely rewritten with a more robust architecture, modern async I/O, better filtering, and production-friendly output behavior).
OSINT tool: wayparam does not crawl targets. It only queries the Wayback CDX API.
Convert this example.com into something like this:
...
http://www.example.com/_next/image?q=FUZZ&url=FUZZ&w=FUZZ
https://www.example.com/_Incapsula_Resource?SWJIYLWA=FUZZ
http://www.example.com/?format=FUZZ&retailerId=FUZZ
...
Key features
- Wayback CDX API URL collection (single domain or list)
- Async + concurrency for speed on multiple domains
- Rate limiting (
--rps) to be polite with Wayback/CDX - Retry + backoff and clearer error messages
- CDX pagination (resumeKey) when available
- Filters “boring” URLs by:
- extension blacklist/whitelist
- optional path regex exclusion
- Canonicalization & normalization
- drop fragments
- normalize host/ports
- sort parameters
- mask parameter values (default placeholder:
FUZZ) - optional tracking parameter removal (utm_*, gclid, fbclid, …)
- Output:
- per-domain files (default)
- stdout streaming for pipelines (
--stdout) txtorjsonloutput (--format)
Installation
From source (recommended for now)
python -m venv .venv
# Windows: .venv\Scripts\activate
# macOS/Linux: source .venv/bin/activate
python -m pip install -U pip
pip install -e .
Development install (tests + lint)
pip install -e ".[dev]"
Quick start
1) Single domain (writes to results/)
wayparam -d example.com
2) List of domains
wayparam -l domains.txt
3) Stream to stdout (for piping), no files
wayparam -d example.com --stdout --no-files
4) JSONL output (great for tooling)
wayparam -d example.com --stdout --no-files --format jsonl
5) Include subdomains + be polite to Wayback
wayparam -d example.com --include-subdomains --rps 1 --concurrency 2
6) Customize filtering (extensions + path regex)
wayparam -d example.com --ext-blacklist ".png,.jpg,.css,.js" --exclude-path-regex "^/static/"
How it works (under the hood)
-
Input parsing
-d/--domainfor a single host-l/--listfor multiple hosts (one per line, supports comments and basic normalization)
-
Query the Wayback CDX API
- Requests are sent to the CDX endpoint (Wayback Machine)
- Uses
matchType=hostby default, ormatchType=domainwhen--include-subdomainsis enabled - Uses pagination (resumeKey) when the API provides it
-
Filter “boring” URLs
- Drops URLs that look like static assets (by extension), with optional whitelist mode
- Optional regex filters can exclude paths (e.g.,
/static/,/assets/, …)
-
Canonicalize + normalize
-
Removes fragments (
#...) -
Normalizes default ports (
:80,:443) -
Parses query string and:
- replaces values with a placeholder (default
FUZZ) - optionally drops tracking parameters
- sorts parameters for stable output
- replaces values with a placeholder (default
-
Deduplicates results
-
-
Output
- By default writes per-domain results into
results/ --stdoutstreams machine-readable output- Diagnostics (hints, logs, stats) go to stderr (safe for pipelines)
- By default writes per-domain results into
Output behavior (important for pipelines)
- stdout: only results (URLs or JSONL) when
--stdoutis enabled - stderr: logs, errors, hints (VPN/proxy), optional stats
This means you can safely do:
wayparam -d example.com --stdout --no-files | sort -u > urls.txt
Common options
Wayback/CDX
--include-subdomains--from 2019/--to 2021(or full timestamps like20190101000000)--filter statuscode:200(repeatable)--no-collapse(more duplicates, more data)
Normalization
--placeholder X--keep-values(not recommended if you share logs)--drop-tracking/--no-drop-tracking--all-urls(include URLs without query parameters)
Filtering
--ext-blacklist ".png,.jpg,.css,.js"--ext-whitelist ".php,.asp,.aspx"--exclude-path-regex "regex"(repeatable)
Performance / network
--concurrency 8--rps 1(recommended when using VPNs / noisy networks)--timeout 30--retries 4--proxy http://127.0.0.1:8080
Troubleshooting: VPN / Proxy issues (Wayback CDX)
If you see errors like “failed after retries” against the CDX endpoint, it often means:
- the VPN/proxy exit node is blocked or rate-limited by Wayback
- your VPN does TLS filtering or networking policies that break automated requests
Try:
- disconnecting VPN/proxy and rerunning
- switching to a different VPN server
- lowering
--concurrencyand setting--rps 1
wayparam will print a human-readable hint in English to stderr when it detects this pattern.
Man page
A manual page is included:
man ./man/wayparam.1
Testing
Install dev dependencies and run:
pip install -e ".[dev]"
pytest -q
The test suite includes httpx-level integration tests using httpx.MockTransport (no network).
License
wayparam is free software released under the GNU General Public License v3 (GPLv3).
See the LICENSE file for details.
Acknowledgements
- Inspired by ParamSpider (same objective: fetch Wayback URLs, filter noise, focus on parameterized endpoints).
- Thanks to the OSINT / security community for patterns and workflows around URL collection and parameter discovery.
Disclaimer
Use responsibly and lawfully. This tool queries the Internet Archive and does not actively scan targets, but your downstream usage of collected URLs may have legal and ethical implications depending on context.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wayparam-0.3.0.tar.gz.
File metadata
- Download URL: wayparam-0.3.0.tar.gz
- Upload date:
- Size: 29.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97806e662535b1d408831897374a9a9770ef1b716368d1b8df6e3d9b5b3f42f7
|
|
| MD5 |
c8f5e117f9e811e336a0e4462fd0496b
|
|
| BLAKE2b-256 |
077ef4a61e9dd6b27aa9f2ec7c287455c6a502ffbe37aa37627fa7bc0830e5a0
|
File details
Details for the file wayparam-0.3.0-py3-none-any.whl.
File metadata
- Download URL: wayparam-0.3.0-py3-none-any.whl
- Upload date:
- Size: 27.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69b9cf4ec0e7ffa0f7cc6dbd79e0eebb0edb889a05e8f88e3e99420bf6436157
|
|
| MD5 |
b687dc0659d0d39aa1ea009d5e4ae9c9
|
|
| BLAKE2b-256 |
36bed3ee716f5bc6eaba0258263b8ba5bbbf88ae9a0e4d6c08c96ae67353a2ed
|