Build a content inventory of every URL before a website migration.
To find every URL before a website migration, compare two lists: what the sitemap holds and what the links reach. A free sitemap listing gives the first (ujeebu.com: 949 URLs, 0 credits), and one crawl job gives the second, with each page's status, title, canonical address, depth and links, at 1 credit a page as HTML. URLs in the sitemap that no link reaches are your orphan pages.
{
"urls": ["https://ujeebu.com/"],
"scope": {"max_depth": 2, "max_pages": 100},
"format": "html",
"page": {"js": false},
"max_credits": 150,
"concurrency": 3
}
→ 202 Accepted
{"job_id": "c_…", "status": "pending"}{
"pages": [
{
"seq": 58,
"url": "https://ujeebu.com/case-study/cline",
"state": "done",
"http_status": 200,
"title": "Scaling to 200 Requests/Second - Cline Case Study | Ujeebu",
"canonical_url": "https://ujeebu.com/solutions/scaling-200-requests-per-second",
"depth": 1,
"discovered_from": "https://ujeebu.com/",
"credits": 1,
"links_total": 93
},
{
"seq": 64,
"url": "https://ujeebu.com/solutions/scaling-200-requests-per-second",
"state": "skipped",
"error_class": "duplicate",
"duplicate_of": "https://ujeebu.com/case-study/cline",
"depth": 1
},
…
],
"next_after": 64,
"has_more": true
}Know what the inventory costs before it starts.
A free quote gives the most a crawl can cost before it starts, and max_credits is a hard cap. Failed, blocked and robots-skipped pages are not billed, and every page has an honest state.
A free quote first
POST /crawl/quote takes the job body and starts nothing. For the 45 posts of our blog it answered 10 credits a page and a ceiling of 450 credits.
{
"estimate": true,
"credits_per_page": 10,
"max_pages": 45,
"credits_ceiling": 450,
"sitemap": {"in_scope_urls": 45}
}A cap that holds
max_credits counts each page once, so a cap equal to the quote's ceiling reads every page. Our 50-credit sample of the same blog stopped at its cap; the pages it never started cost nothing.
{
"stop_reason": "max_credits",
"credits_used": 50,
"max_credits": 50,
"errors": {"stopped": 40}
}An honest state for every page
done, blocked, not_found, timeout, robots, duplicate or stopped, with the reason. A site that refuses everything reads as blocked, never as an empty site.
{
"url": "https://books.toscrape.com/catalogue/the-page-that-moved_999/index.html",
"state": "failed",
"http_status": 404,
"error_class": "not_found",
"error": "Invalid status code from URL: 404"
}Output of our runs on ujeebu.com and books.toscrape.com (November 17, 2026), trimmed; credit figures follow the price list.
Where migrations lose traffic.
Most of the damage comes from URLs nobody knew about.
Old campaign pages and forgotten guides still get visits. The CMS export and the sitemap rarely match what the links actually reach.
Moved pages leave internal links pointing nowhere. Finding them by clicking around does not work past a few dozen pages.
A wrong canonical or a duplicate path splits ranking signals. You need each page's declared canonical next to its URL.
Once the old site is switched off, so is the evidence of what it said. You want a dated copy to compare against.
Inventory, content audit, redirect map.
One row per URL, before anyone touches the CMS.
URL, status, title, canonical address, depth, the page that linked to it and how many links it has: the spreadsheet a migration plan starts from, built from what the site actually serves.
- title and canonical_url per page
- depth and discovered_from for the structure
- links (up to 300) and links_total
Decide keep, update, merge or remove.
Sort the inventory by links in, depth and title. Pages no link reaches, pages that point to another canonical and pages with repeated titles are the first to review.
- links in counted from the crawl
- duplicate_of for pages with another canonical
- a sha256 per page to compare versions
The left column of your redirect map.
Every URL that answers today, with its title and canonical, needs a home after the move. Map each one to its new address before launch, and keep the archive as the record of the old site.
- every page that answers, with its title
- a tar.gz archive with manifest.json
- checksum_sha256 for the whole archive
Eight steps, and what the crawl gives each one.
The redirect map is only as good as the list of URLs it starts from. Build that list before anyone touches the CMS.
| Step | When | With the crawl |
|---|---|---|
| 1. List every URL in the sitemaps | Before | A sitemap job, "mode": "sitemap": no page calls, 0 credits. |
| 2. Crawl what the links reach | Before | One job as HTML without JavaScript, use_sitemap left off. |
| 3. Find the orphan pages | Before | Sitemap URLs the crawl never reached. |
| 4. Build the content inventory | Before | One CSV row per page record (columns below). |
| 5. Draft the redirect map | Before | Every page that answers, with its title and canonical_url. |
| 6. Keep a before snapshot | Before | The job archive: manifest.json plus one file per page, with checksum_sha256. |
| 7. Crawl the new site | After launch | The same request; compare the two inventories. |
| 8. Fix the broken links | After launch | not_found records, each with the page that links to it in discovered_from. |
Two lists, one comparison, one snapshot.
What the sitemap claims, what the links reach, what is broken, and a copy of it all, before the move.
- 1
List what the sitemap holds, for free
A sitemap job reads the site's sitemaps and lists the in-scope URLs, with no page calls and no credits. On ujeebu.com it listed 949 URLs for 0 credits.
Requestcurl -X POST https://api.ujeebu.com/crawl \ -H "ApiKey: $UJEEBU_KEY" -H "Content-Type: application/json" \ -d '{"urls": ["https://ujeebu.com/"], "mode": "sitemap", "scope": {"max_pages": 1000}}'Job status (trimmed){ "status": "completed", "finished": true, "mode": "sitemap", "counts": {"listed": 949}, "credits_used": 0 } - 2
Crawl what the links reach
Crawl the site as HTML without JavaScript, 1 credit a page on the price list, with use_sitemap left off so only the links lead the way. Write one row per page record: that is your content inventory. Links in are counted from the other pages' link lists.
Pythonimport collections, csv pages = list(read_pages(crawl_job)) # GET /crawl/{id}/pages, 50 at a time links_in = collections.Counter(u for p in pages for u in set(p.get("links", []))) COLS = ["url", "state", "http_status", "error_class", "title", "canonical_url", "duplicate_of", "depth", "discovered_from", "links_out", "links_in", "sha256"] with open("inventory.csv", "w", newline="") as f: w = csv.DictWriter(f, fieldnames=COLS, extrasaction="ignore") w.writeheader() for p in pages: w.writerow({**p, "links_out": p.get("links_total", 0), "links_in": links_in[p["url"]]}) - 3
Find the orphans and the broken links
Compare the two lists. Sitemap URLs the crawl never reached are orphan candidates; crawled pages missing from the sitemap need adding. Every not_found record names the page that links to it.
Pythonlisted = {p["url"] for p in read_pages(sitemap_job)} # state "listed" crawled = {p["url"] for p in pages} orphans = sorted(listed - crawled) # in the sitemap, no link reaches them missing = sorted(crawled - listed) # linked, but not in the sitemap broken = [(p["discovered_from"], p["url"]) for p in pages if p.get("error_class") == "not_found"] - 4
Keep a checksummed before snapshot
Every finished job has a tar.gz archive: manifest.json with every page record, plus one HTML file per page read. Download it within 72 hours of the end of the job and check it against checksum_sha256.
Shellcurl -s https://api.ujeebu.com/crawl/$JOB_ID \ -H "ApiKey: $UJEEBU_KEY" | jq .archiveResponse (a 40-page job){ "url": "https://…", "size_bytes": 54711, "checksum_sha256": "3ade289d0d04998f…", "file_count": 41, "expires_at": "2026-11-20T10:24:26Z" }Shellcurl -sL "$ARCHIVE_URL" -o before.tar.gz sha256sum before.tar.gz # equals checksum_sha256 tar -xzf before.tar.gz # manifest.json, page-000001.html, …
The columns of the inventory, and where each one comes from.
Every column is a field of the page record, except links in, which the script counts.
| Column | From the page record | Use it to |
|---|---|---|
| url | url | Key every row of the inventory and the redirect map. |
| state, http_status | state, http_status | Separate pages that answer from pages that fail or were skipped. |
| error_class | error_class | Read why a page has no content: not_found, blocked, timeout, robots, duplicate. |
| title | title | Spot missing, weak or repeated titles. |
| canonical_url | canonical_url | Find pages that declare another page as canonical. |
| duplicate_of | duplicate_of | The page this one duplicates, through its canonical link (HTML format). |
| depth | depth | How many links from the start URL: deep pages are easy to lose. |
| discovered_from | discovered_from | Where the URL was first found, and where to fix a broken link. |
| links_out | links_total | How many links the page has. |
| links_in | counted from the other pages' links | Pages with 0 links in are orphans or near orphans. |
| sha256 | sha256 | Compare the old content with the new after launch. |
A 1,000-page site, inventoried before and after the move.
Prices come from the price list: 1 credit per page as HTML without JavaScript. Our 100-page crawl of ujeebu.com cost 100 credits.
- A site that renders in the browser costs 5 credits a page with JavaScript, 10,000 credits for both crawls. Premium and residential proxies cost more.
- Failed, blocked and robots-skipped pages are not billed. max_credits counts each page once, so a cap equal to the quote's ceiling reads every page.
- Bigger than 2,000 pages: one job per section with include patterns, 2 jobs at a time.
Full code, real output.
What a migration crawl records.
One record per page
url, canonical_url, duplicate_of, depth, discovered_from, state, http_status, title, links and links_total, and a sha256 of the content.
Broken links, with their source
A page that is not found is recorded as not_found with its 404, and discovered_from names the page that links to it: the list of links to fix comes with the crawl.
Sitemap against reality
A sitemap listing shows what the sitemap claims, for free; a crawl shows what the links reach. The difference is your orphan pages.
Checksummed archive
A tar.gz with manifest.json and one file per page, and checksum_sha256 to prove it is intact. Kept 72 hours after the job ends.
Depth and scope
Up to 20 links deep and 2,000 pages a job, with include and exclude patterns to inventory one section at a time.
A hard credit cap
POST /crawl/quote prices the job before it starts, and max_credits stops it before a page that would go past your cap.
Questions people ask before a migration.
How do I find all URLs on a website before a migration?
What columns should a content inventory have?
How do I start a website content audit?
How do I find broken links on my site?
What does a site inventory crawl cost?
How big a site can one job inventory?
Move the site. Keep every page.
Count the URLs for free, inventory every page under a hard cap, and keep a checksummed copy of the old site. Start with 5,000 free credits, no card.