Feed URL lists to AI agents and RAG pipelines
LLM agents need to discover all pages on a domain before crawling them for content. SitemapKit provides a clean URL list that agents can use as seed URLs for Crawl4AI, Firecrawl, or custom crawlers.
A repeatable workflow for llm agents & rag pipelines that turns sitemap data into a structured result your team can validate and reuse.
Start from this concrete goal: Feed URL lists to AI agents and RAG pipelines
Use the implementation example below from server-side code and pass the target domain or sitemap URL required by the workflow.
Check the returned sitemap URLs and page records against the expected outcome for llm agents & rag pipelines before sending the data to the next system.
import requests
# Step 1: Get all URLs from sitemap
response = requests.post(
"https://sitemapkit.com/api/v1/sitemap/full",
headers={"x-api-key": "YOUR_API_KEY"},
json={"url": "docs.example.com"}
)
urls = [u["loc"] for u in response.json()["urls"]]
# Step 2: Feed to your RAG pipeline
for url in urls:
content = crawl_page(url) # Crawl4AI, Firecrawl, etc.
index.add(content) # Add to vector storeInspect a sitemap structure before automating the workflow.
Review authentication, endpoints, response fields, and limits.
Connect sitemap discovery to the language or platform you use.
Understand XML sitemap fields and technical SEO terminology.
Free tier includes 100 API calls/month. No credit card required.