← All integrations
Languages

SitemapKit + JavaScript / Node.js

Integrate SitemapKit into your Node.js applications or serverless functions. Use fetch or axios to call the API and process sitemap data in your JavaScript projects.

Quick Start

const API_KEY = "YOUR_API_KEY";
const BASE = "https://sitemapkit.com/api/v1/sitemap";

// Discover + extract in one call
const response = await fetch(`${BASE}/full`, {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-api-key": API_KEY,
  },
  body: JSON.stringify({ url: "example.com" }),
});

const data = await response.json();
console.log(`Found ${data.sitemaps.length} sitemaps`);
console.log(`Extracted ${data.urls.length} URLs`);

// Process URLs
const recentUrls = data.urls
  .filter((u) => u.lastmod && u.lastmod > "2025-01-01")
  .map((u) => u.loc);

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 JavaScript / Node.js

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

More Languages integrations