How to map a website's URLs for docs with Web extraction
Get a clean, relevance-ordered list of a site's URLs with titles and descriptions from one Web extraction map call
On this page
You have 120 documentation URLs to inventory across a product site before a migration, and you want sitemap-only discovery so the list stays authoritative. One anyapi.web.map call per documentation host returns that host's links with titles and descriptions, and the rows become the table behind the redirect plan and the content audit
Nothing was run for this article. The table below is a design, and its values are placeholders showing the shape
| url | title | description | section |
|---|---|---|---|
| (link returned by the tool) | (page title) | (page description) | (first path segment) |
The first path segment is derived rather than returned: take it from the URL so the audit can group rows by product area. Leave url, title and description as the response gives them
Input the tool takes
url is the one required field, the base URL of the site to map. Four optional fields sit beside it: includeSubdomains, limit, search and sitemap. The schema you see at run time is the authority, so check it before a long run instead of assuming this list has not moved
url takes a uri. Use the docs homepage rather than a deep article. includeSubdomains is a boolean and is true upstream by default, which includes URLs on subdomains of the target, so mapping a host also picks up URLs on its subdomains. Set it false to return only URLs on the exact host. search is an optional term that orders the returned links by relevance; the contract describes ordering and never describes it as a filter
Step 1: sitemap-only discovery
sitemap has three values. include is the upstream default and merges sitemap URLs with links found by crawling. only returns just the URLs listed in sitemap.xml and is described as the fastest and most authoritative option. skip ignores the sitemap and discovers URLs by crawling links. For a migration inventory, only is the setting that matches the job, because the list is whatever the site's own sitemap declares
Example input, with a placeholder host
url: https://docs.example.com
sitemap: only
limit: 150The host in the example is invented. Replace it with a real host before running
The limit cap
limit defaults to 100 and caps the maximum number of links returned by a call. Your 120-URL target does not fit under the default, so a single call stops at 100 rows unless you raise limit. Set limit to 150, or map one host per call and plan a second pass when a host is larger than the cap
Reading the response fields
found is the boolean that drives the first decision. When it is true, data.results holds the array, and each item carries url, title and description. url is the field the contract marks as populated whenever the provider has data. When found is false, data is null and reason appears with the value not_found
A found: false answer is a successful call, not an error, and the contract says costUsd reports what that call actually cost. Treat that host as unmapped and follow it up by hand rather than reading it as a tool failure
Rows with a url go into the redirect plan. Titles and descriptions go into the content audit, and the derived grouping column lets you sort before you open any page
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to map documentation URLs
for the hosts below. Check the current inputs and price of anyapi.web.map
(called through `POST /v1/runs` with toolId `anyapi.web.map`) before running anything. For each host, call the tool
once with url set to that host, sitemap set to "only", includeSubdomains left
at its default, and limit set to 150. Return one table with url, title,
description and section, where section is the first path segment of the URL and
the other three columns come from the response unchanged. List any host whose
response has found set to false, with its reason. Do not invent URLs and do not
fetch pages yourself.
Example hosts, replace with real ones:
https://docs.example.com
https://help.acme-plumbing.example
https://docs.okafor-plumbing.example
https://docs.ramanlegal.example
https://docs.weber-print.exampleEstimated tool cost
Prices come from the Purrkey catalog revision anyapi-catalog-2026-11-05, read on November 13, 2026. The unit is max_call: Maximum per call. Successful runs settle at the actual AnyAPI charge. The tool is listed at up to $0.001 per call, and the totals below are ceilings
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| Map one documentation host | calls x max price | $0.001 per call | 1 | $0.001 |
| Map five documentation hosts | calls x max price | $0.001 per call | 5 | $0.005 |
Model fees for the agent are not counted, and a found: false host still counts as a call
Next step
Open https://purrkey.app/tools/web_extraction?q=map and check the current price and input schema before the first run. The URLs it returns feed the companion guide at https://purrkey.app/blog/convert-web-page-to-markdown if the audit also needs page content as Markdown
Get started by giving this to your agent
- Claude Code
- Codex
- Gemini CLI
- Cursor
- GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Web extraction.FAQ
How do I map a website's URLs for docs?
Call anyapi.web.map with url set to the docs homepage and sitemap set to only, then read url, title and description from data.results into a table with a derived section column.
What inputs does anyapi.web.map take?
url is required. includeSubdomains, limit, search and sitemap are optional. Check the current input schema before a long run.
What does sitemap only return?
only returns just the URLs listed in the site's sitemap.xml, which the contract describes as the fastest and most authoritative option. include merges sitemap URLs with links found by crawling, and skip ignores the sitemap.
Why did I get only 100 URLs back?
limit defaults to 100 and caps the maximum number of links a call returns. Raise limit above your target count, for example to 150, before rerunning.
What does found false mean for anyapi.web.map?
data is null and reason appears with the value not_found. The contract calls a found false answer a successful call, not an error, and says costUsd is what it actually cost.
How much does it cost to map five documentation hosts?
At most $0.005. One call is up to $0.001 and the five-host plan is five calls.
Which fields come back for each URL?
Each item in data.results has url, title and description. url is the field marked as populated whenever the provider has data.
Next step
Try this with Web extraction
The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.