Use SitemapKit in Go applications with the standard net/http package. Great for high-performance sitemap processing pipelines.
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))
}sk_live_* API key./api/v1/sitemap/full endpoint to discover and extract all sitemaps from a domain in one call.POST /api/v1/sitemap/discover — Find all sitemaps on a domainPOST /api/v1/sitemap/extract — Parse a sitemap URL and extract all URLsPOST /api/v1/sitemap/full — Discover + extract in one call (recommended)100 free API calls/month. No credit card required.