Skip to main content
Sitemap Source

Create Sitemap Source task

post/v1/sources/tasks

Authorizations

X-API-Key or Authorizationstringheaderrequired

We recommend sending your Personal API Key in x-api-key. Datablist handles token renewal for you. Optionally, use an access token as Authorization: Bearer <token> if your application manages tokens itself. Send only one credential header.

Authentication options ↗

Read an XML sitemap or follow the sitemaps listed in an index. Retrieve page URLs and last-modified timestamps as flat objects without a collection or input rows.

Public ID: sitemap-source. Get the current definition. You can read it without authentication. Confirm availability in the source catalog.

Settings​

Set sitemapUrl to the full sitemap URL. You can set filterRegex to keep matching page URLs; matching ignores case.

Omit sitemapSourceLimit for no requested total limit, or set a positive integer to limit URLs across the whole task, including sitemap indexes and pagination. API tasks can return more than 100,000 results. When several sitemaps are processed at once, the result count can exceed your requested limit.

For very large sitemap indexes, submit individual sitemap URLs to stay within processing limits.

Missing modification dates return null. Dates without a time use midnight UTC; timestamps without a time zone are treated as UTC.

sitemapUrlstringrequired

Full sitemap URL, such as https://www.datablist.com/sitemap.xml. Sitemap indexes are followed automatically.

format: "uri"
filterRegexstring

Keep only page URLs matching this regular expression.

sitemapSourceLimitnumber

Requested maximum number of page URLs across the task. Defaults to 95,000; concurrent work can exceed a smaller requested limit.

Additional properties are supported.

Credits and limits​

Cost: 1 credit per 150 URLs parsed.

This source requires a balance of at least 40 credits before execution. Parsing costs 1 credit per 150 returned URLs, proportionally rather than rounding to a complete block. Downloads requiring the protected-site fallback can add 1 credit. Work producing no URLs can still incur a download charge.

Available credits are checked before each execution, including pagination. Each execution limits its URL batch to its credit allowance after download charges. If credits run out, the task stops with error.reason: "credits_error"; previously generated results remain available. No requested result limit does not mean unlimited credits or execution time.

Tasks can run for up to 24 hours; completed, failed, or stopped tasks are kept for 90 days. Enrichment and source tasks share your account balance and task limits. Set maxCredits to stop starting new work after a credit threshold; work already underway can still exceed it. See limits and errors.

Accepted task​

The API returns 202 Accepted with a task ID. Save it and check links.self every few seconds. Once the task is completed, failed, or stopped, get Sitemap Source task results. The response below is sample data.

Sitemap Source overview · Shared task reference

Last updated on