{
  "info": {
    "_postman_id": "03c118f3-13c2-45b8-8340-3d73d49e71db",
    "name": "SitemapKit API",
    "description": "Discover XML sitemaps and extract deduplicated URL lists. Create a free API key at https://sitemapkit.com/register and set the apiKey collection variable before running a request.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "x-api-key",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "event": [
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "exec": [
          "pm.test(\"Response is JSON\", function () {",
          "  pm.response.to.be.json;",
          "});",
          "pm.test(\"Request succeeded\", function () {",
          "  pm.expect(pm.response.code).to.be.within(200, 299);",
          "});",
          "pm.test(\"Response reports success\", function () {",
          "  pm.expect(pm.response.json().success).to.eql(true);",
          "});"
        ]
      }
    }
  ],
  "item": [
    {
      "name": "Discover sitemap files",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"url\": \"{{siteUrl}}\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/sitemap/discover",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "sitemap",
            "discover"
          ]
        },
        "description": "Checks robots.txt and 16 common sitemap locations for the siteUrl domain, including compressed .xml.gz files, /sitemap.php, and news, image, and video sitemap filenames."
      },
      "response": []
    },
    {
      "name": "Extract a sitemap",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"url\": \"{{sitemapUrl}}\",\n  \"maxUrls\": 5000\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/sitemap/extract",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "sitemap",
            "extract"
          ]
        },
        "description": "Parses sitemapUrl and follows nested sitemap indexes, up to the requested maxUrls limit."
      },
      "response": []
    },
    {
      "name": "Discover and extract URLs",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"url\": \"{{siteUrl}}\",\n  \"maxUrls\": 5000\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/sitemap/full",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "sitemap",
            "full"
          ]
        },
        "description": "Finds sitemap files for siteUrl, recursively extracts them, and returns one deduplicated URL list."
      },
      "response": []
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.sitemapkit.com",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "",
      "type": "string"
    },
    {
      "key": "siteUrl",
      "value": "https://example.com",
      "type": "string"
    },
    {
      "key": "sitemapUrl",
      "value": "https://example.com/sitemap.xml",
      "type": "string"
    }
  ]
}
