Skip to content
Documentation

Page filters

Choose pages of a crawl by address, content, numbers and problems.

Filters work in the list of pages, in the list of addresses and in extraction. In the panel you build them by clicking. In the API a filter is a text:

field:operator:value

Examples

FilterPages
path:pattern:/blog/*Under /blog/
status:gte:400With an error status
words:lt:300With fewer than 300 words
title:not_contains:ShopWithout "Shop" in the title
h1:regex:^\d+With an h1 that starts with a number
image_alt:eq:logoWith an image described as "logo"
index:is:falseThat may not be indexed
issue:is:missing_titleWithout a title

Use filters in the API

In a query, repeat the filter parameter, up to 10 times:

curl -G https://api.seoscraper.io/v1/crawls/CRAWL_ID/pages \
  -H "Authorization: Bearer ssk_YOUR_KEY" \
  --data-urlencode "filter=path:pattern:/blog/*" \
  --data-urlencode "filter=words:lt:300" \
  --data-urlencode "match=all" \
  --data-urlencode "sort=words"

match=all requires every filter and is the default. match=any is satisfied by one.

In extraction, send a list in the filters field:

{ "filters": ["path:pattern:/blog/*", "words:lt:300"], "match": "all" }

There is also q, a plain search in the address and title. With * it becomes a path pattern, for example q=/blog/*.

Text

Fields: url, path, final_url, found_on, title, description, canonical, content_type, lang, robots, h1, heading, link_url, link_text, image_src, image_alt, html.

OperatorMeaning
containsContains the text
eqIs equal to the text
startsStarts with the text
endsEnds with the text
patternMatches the whole pattern, where * is any text
regexMatches a regular expression (RE2 syntax)
presentIs filled in. Write it without a value: canonical:present:

Put not_ in front to reverse any of them: not_contains, not_present. Letter case does not matter. When a page has many values, such as links, one match is enough.

/blog/* means pages under /blog/, without /blog/ itself.

Numbers

Operators: eq, not_eq, gt, gte, lt, lte.

FieldValue
statusHTTP status
depthClicks from the start page
wordsWords in the content
timeFetch time in milliseconds
size_kbSize in kilobytes
title_length, description_lengthNumber of characters
redirectsNumber of redirects
h1_count, headingsNumber of headings
links, internal_links, external_linksNumber of links
images, missing_altNumber of images, also without alt

Yes or no

index, follow and truncated take is with the value true or false.

issue takes is or not_is with the name of a problem from the list.

A wrong filter returns 422 invalid_filter with an explanation in message.