Import sitemap
import_sitemapRead the site's sitemap into the workspace inventory of pages it already published, so add_topics can withhold a phrase an existing page covers. Free: no DataForSEO, and it never downloads a page: it reads sitemap files only, so every page title is inferred from its URL slug (titleSource slug), never read. Without sitemapUrl it discovers one from profile.sitemapUrl, then the Sitemap lines of robots.txt, then /sitemap.xml and /sitemap_index.xml. Needs profile.siteUrl; a sitemapUrl on another host is refused (off-host). Idempotent: re-running updates the inventory, and pages that left the sitemap drop out of it. Bounded at 20 sitemaps, 5,000 URLs and about 25 seconds; past that status is partial and sitemapsSkipped says why. contentPrefix is the path the blog lives under (detected, e.g. /blog); pass it only when the detection is wrong. If it fails, carry on: nothing else depends on it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sitemapUrl | No | ||
| workspaceId | No | The workspace this call acts on, as listed by list_workspaces. Left out, the call uses the workspace the account is in right now. | |
| contentPrefix | No |