Find the sitemaps declared in the robots.txt of a site's start URLs
Read the robots.txt of each origin of the given start URLs and return the
sitemap URLs it declares (Sitemap: lines). Only absolute http(s) URLs are
kept. Invalid start URLs and unreachable or failing robots.txt files are
skipped (they yield no sitemap); the call errors only when no start URL is
usable.
The robots.txt is fetched like robots_txt_check does: without the
project's user agent or authentication headers.
Playground
Log inLog in to try this tool. The request uses your session.
POST
item
start_urlsrequired
Start URLs of the crawl. The robots.txt of each distinct origin (scheme, host, port) is read once. An explicit default port (:443 for https, :80 for http) is the same origin.
Credits
Fixed cost per call. A robots.txt we can fetch ourselves adds nothing. When an origin blocks the direct fetch, a proxied fetch may be billed for that origin.
These usage SKUs can be charged on a call, including SKUs from
tools this one may call.
SKU
Credits
Description
Used by
Tool call
1 per request
Charged once per successful item, on top of any usage below.
This tool
Live page fetch
5 per 10 page
Fetches a page from the live web as an ordinary visitor would.
item is what you send, config how the tool behaves,
and the response is what you get back.
Item
object
Properties
start_urlsarrayrequired
Start URLs of the crawl. The robots.txt of each distinct origin (scheme, host, port) is read once. An explicit default port (:443 for https, :80 for http) is the same origin.
min items 1, max items 20
Example
{
"start_urls": [
"string"
]
}
Response
object
Properties
sitemapsarrayrequired
Sitemap URLs declared in the robots.txt files, in order, without duplicates
robots_txtarrayrequired
One entry per origin, in the order of the start URLs