---
title: Extract Sitemap from URL API
slug: extract-sitemap-from-url-api
url: https://apyhub.com/apyhub/service/extract-sitemap-from-url-api
provider: ApyHub
categories: [Data Extraction, Developer Tools, SEO]
tags: [sitemap, url-extraction, seo, website-crawling, xml-parsing]
auth: api_key
---

# Extract Sitemap from URL API

Extract URLs from a website’s sitemaps, with optional sitemap metadata and async job polling. Useful for SEO audits, crawl seeds, and site inventory.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/extract` | What it does Extracts all URLs discovered from a website’s sitemaps. It accepts either a website UR… | 50 |
| GET | `/jobs/:jobId` | What it does Polls the status of a sitemap extraction job using the jobId in the path. The success… | 1 |

## About

## What it does
Sitemap Extractor finds and returns the URLs exposed by a website’s sitemap files. Send a website URL or a direct sitemap URL, and it will resolve the sitemap source, process sitemap indexes and nested sitemaps, and give you back the collected URLs.

Use it when you need a crawl seed list, want to audit what a site exposes to search engines, or need to compare sitemap coverage against live pages. The request accepts a `url` in the body, with optional `mode=async`, `maxUrls`, and `includeMetadata`. If you pass `includeMetadata`, the response can include each URL with `lastmod`, `priority`, and `changefreq`; otherwise you get plain URL strings.

The response also includes extraction metadata such as the source URL, how the sitemap was discovered, processed sitemap lists, and a summary with counts like `uniqueUrls`, `totalUrlsFound`, `duplicatesRemoved`, and whether a limit was reached. If extraction is running asynchronously, the initial response gives you a `jobId`, and you can poll the job endpoint until it returns `done` or `failed`.

Sitemap Extractor is a good fit for SEO tools, site monitoring, content inventory, and any workflow that needs a structured list of URLs from one site.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/extract-sitemap-from-url-api
