Search configured torrent indexers via Jackett's Torznab API.
Config (default): ~/.openclaw/credentials/jackett/config.json
{
"url": "http://localhost:9117",
"apiKey": "your-jackett-api-key"
}
# All configured and available indexers
./scripts/jackett-api.sh indexers
# Only configured indexers
./scripts/jackett-api.sh indexers --configured true
# Search across all configured indexers
./scripts/jackett-api.sh search "ubuntu 24.04"
# Search a specific indexer
./scripts/jackett-api.sh search "dune 2024" --indexer nyaasi
# Increase the output window when needed
./scripts/jackett-api.sh search "dune 2024" --indexer nyaasi --limit 50 --offset 0
# Search with a Jackett filter indexer
./scripts/jackett-api.sh search "openwrt" --indexer "tag:public,lang:en"
# Keep raw XML instead of parsed JSON
./scripts/jackett-api.sh search "foundation s02" --raw
./scripts/jackett-api.sh tvsearch --query "The Last of Us" --season 1 --ep 2
./scripts/jackett-api.sh movie --query "Dune Part Two" --year 2024
./scripts/jackett-api.sh music --artist "Daft Punk" --album "Discovery"
./scripts/jackett-api.sh book --title "The Pragmatic Programmer"
# Inspect search capabilities for an indexer
./scripts/jackett-api.sh caps --indexer nyaasi
# Inspect the aggregate "all" indexer
./scripts/jackett-api.sh caps
Parsed searches default to --limit 20 to avoid overwhelming the terminal on very large result sets.
--limit N--offset N--indexer, --cat, or typed searches such as tvsearch and movie before raising the limit--raw only when the original XML is required, because it can be much larger than parsed JSONWhen searching for releases, normalize the query before calling Jackett:
Examples:
Avatar -> avatarAvatar: The Way of Water -> avatar the way of waterDolby Vision -> dvDolby Atmos -> atmosUHD Blu-ray remux -> uhd bluray remuxSubtitles included usually should not be required in the first query unless the indexer is known to tag it consistentlyRecommended search pattern:
english-title + important format keywords2160p, web-dl, bluray, remux, x265, dv, hdr, atmosParsed search results are emitted as JSON with a top-level meta object and results array.
meta includes:
total, offset, limit, returned, truncatedEach result object includes fields such as:
title, guid, size, publish_datelink, details, download_urlseeders, peers, grabsindexer, categoryimdb, tmdb, tvdbUse --raw to keep Jackett's original XML response.
共 1 个版本