Apply filters to CDX queries
mainFilters limit results to a subset of captures. The syntax is [modifier]field:expression. Multiple filters are combined with an implicit AND.
Common Crawl (pywb) Filters
Modifiers determine the match type:
- (none): Substring match
=: Exact string~: Full-match regex!: Inverted substring match!=: Inverted exact string!~: Inverted full-match regex
Example: --filter '!=status:200' --filter '!=status:404'
Internet Archive (Wayback) Filters
Supports two flavors:
field:expression(Full-match regex)!field:expression(Inverted full-match regex)
Warning: Filtering large datasets (e.g., discarding millions of records to find a few) can place significant load on the CDX server.
# Example: CC filter for exact status 200
$ cdxt --cc --filter '=status:200' iter 'example.com/*'
# Example: Multiple filters (AND logic)
$ cdxt --cc --filter '!=status:200' --filter '!=status:404' iter 'example.com/*'