Run reports
Inspect robots.txt and sitemaps
Check crawl directives for one URL and read the entries in a sitemap. These are separate reports with different scopes.
Evaluate robots rules for a URL
Terminal
npx --no-install gwg-seo reports run site.robots \
--url https://www.example.com/pricing/Pass the page URL you want evaluated. The report reads robots.txt for its origin, evaluates the rules for the GWG-SEO user agent, and lists declared sitemap locations.
Read one XML sitemap
Terminal
npx --no-install gwg-seo reports run site.sitemap \
--url https://www.example.com/sitemap.xml --max-urls 100The URL can point to a sitemap or a sitemap index. The report retains a bounded set of entries. It does not fetch listed pages or recursively crawl every child sitemap in an index. Follow a child sitemap URL with a separate report when needed.
Use the observations together
- Inspect robots rules when a crawl stops unexpectedly. Check the intended user agent and affected path.
- Inspect a sitemap to review declared URLs and bounded metadata. An entry is a declaration, not proof of successful indexing.
- Run a page audit or a crawl when you need observations from the listed pages themselves.
Use reports describe site.sitemap for the exact parameter schema. maxUrls accepts 1 to 10,000, with network and output limits still applying.
