← All integrations
Languages

SitemapKit + cURL

Test the SitemapKit API directly from your terminal with cURL. Perfect for quick tests, debugging, and shell scripts.

Quick Start

# Discover sitemaps on a domain
curl -X POST https://sitemapkit.com/api/v1/sitemap/discover \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"url": "example.com"}'

# Extract URLs from a specific sitemap
curl -X POST https://sitemapkit.com/api/v1/sitemap/extract \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"url": "https://example.com/sitemap.xml"}'

# Full discovery + extraction in one call
curl -X POST https://sitemapkit.com/api/v1/sitemap/full \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"url": "example.com"}' | jq '.urls | length'

How it works

  1. Get your API key — Sign up for a free SitemapKit account to get your sk_live_* API key.
  2. Call the API — Use the /api/v1/sitemap/full endpoint to discover and extract all sitemaps from a domain in one call.
  3. Process the data — The response includes structured JSON with all URLs, lastmod dates, and sitemap metadata.

API Endpoints

  • POST /api/v1/sitemap/discover — Find all sitemaps on a domain
  • POST /api/v1/sitemap/extract — Parse a sitemap URL and extract all URLs
  • POST /api/v1/sitemap/full — Discover + extract in one call (recommended)

Start using SitemapKit with cURL

100 free API calls/month. No credit card required.

More Languages integrations