← All integrations
Languages

SitemapKit + Go

Use SitemapKit in Go applications with the standard net/http package. Great for high-performance sitemap processing pipelines.

Quick Start

package main

import (
    "bytes"
    "encoding/json"
    "fmt"
    "net/http"
)

type SitemapURL struct {
    Loc     string `json:"loc"`
    Lastmod string `json:"lastmod,omitempty"`
}

type FullResponse struct {
    Sitemaps []string     `json:"sitemaps"`
    URLs     []SitemapURL `json:"urls"`
}

func main() {
    body, _ := json.Marshal(map[string]string{"url": "example.com"})
    req, _ := http.NewRequest("POST",
        "https://sitemapkit.com/api/v1/sitemap/full",
        bytes.NewBuffer(body))
    req.Header.Set("Content-Type", "application/json")
    req.Header.Set("x-api-key", "YOUR_API_KEY")

    resp, _ := http.DefaultClient.Do(req)
    defer resp.Body.Close()

    var data FullResponse
    json.NewDecoder(resp.Body).Decode(&data)
    fmt.Printf("Found %d sitemaps, %d URLs\n", len(data.Sitemaps), len(data.URLs))
}

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 Go

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

More Languages integrations