# Parse Sitemap API

> Fetch and parse an XML sitemap, sitemap index, or plaintext URL list. Returns URL entries (with lastmod/changefreq/priority) or child sitemap locations.

Category: [SEO Tools APIs](https://upapi.io/apis/seo-tools) · Last updated 2026-06-12

## What is the sitemap parser API on upAPI?

The sitemap parser API on upAPI is XML sitemap to JSON in one call: it extracts the URLs from a sitemap with their lastmod, changefreq and priority. A sitemap index returns its child sitemap addresses instead, and a plain text URL list works too. The Free plan includes 1,000 weighted units a month.

## How to call it

- Endpoint: `POST https://api.upapi.io/sitemap-parse.get`, key in the `X-Api-Key` header, JSON body.
- Cost: 1 weighted unit per call.
- Timeout: 15 seconds.
- Cache: identical requests are served from cache for 3600 seconds, unbilled.
- Try it without writing code: https://app.upapi.io/try/sitemap-parse.get

```bash
curl -X POST https://api.upapi.io/sitemap-parse.get \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "url": "https://github.com", "limit": 500 }'
```

## Request parameters

- `url` (string, required) — Sitemap URL (usually /sitemap.xml or a sitemap index)
- `limit` (integer) — Max URLs to return

## Response fields

- `type` (string, required)
- `urls` (array, required)
- `urls[].loc` (string, required)
- `urls[].lastmod` (string, required)
- `urls[].priority` (number, required)
- `urls[].changefreq` (string, required)
- `returned` (integer, required)
- `fetchedAt` (string, required)
- `sitemapUrl` (string, required)
- `totalFound` (integer, required)
- `childSitemaps` (array, required)

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "url": "https://github.com",
  "limit": 500
}
```

```json
{
  "type": "example",
  "urls": [
    {
      "loc": "example",
      "lastmod": "example",
      "priority": 1,
      "changefreq": "example"
    }
  ],
  "returned": 1,
  "fetchedAt": "example",
  "sitemapUrl": "example",
  "totalFound": 1,
  "childSitemaps": [
    "example"
  ]
}
```

## Frequently asked questions

### How much does the Parse Sitemap API cost per call?

Each call spends 1 weighted unit of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the Parse Sitemap API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are Parse Sitemap API responses cached?

Yes — identical requests are served from cache for 3600 seconds, and a cache hit is not billed.

## More SEO Tools APIs

- [Parse Open Graph Metadata](https://upapi.io/apis/seo-tools/opengraph-parse)
- [Get Bing Search Results](https://upapi.io/apis/seo-tools/bing-serp)
- [Get DuckDuckGo Search Results](https://upapi.io/apis/seo-tools/duckduckgo-search)
- [Get Google Search Results](https://upapi.io/apis/seo-tools/google-serp)
