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:valueExamples
| Filter | Pages |
|---|---|
path:pattern:/blog/* | Under /blog/ |
status:gte:400 | With an error status |
words:lt:300 | With fewer than 300 words |
title:not_contains:Shop | Without "Shop" in the title |
h1:regex:^\d+ | With an h1 that starts with a number |
image_alt:eq:logo | With an image described as "logo" |
index:is:false | That may not be indexed |
issue:is:missing_title | Without 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.
| Operator | Meaning |
|---|---|
contains | Contains the text |
eq | Is equal to the text |
starts | Starts with the text |
ends | Ends with the text |
pattern | Matches the whole pattern, where * is any text |
regex | Matches a regular expression (RE2 syntax) |
present | Is 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.
| Field | Value |
|---|---|
status | HTTP status |
depth | Clicks from the start page |
words | Words in the content |
time | Fetch time in milliseconds |
size_kb | Size in kilobytes |
title_length, description_length | Number of characters |
redirects | Number of redirects |
h1_count, headings | Number of headings |
links, internal_links, external_links | Number of links |
images, missing_alt | Number 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.