---
title: "Website Page Counter"
method: GET
path: "/v1/domains/checker/pages"
tags: ["domains"]
---

# Website Page Counter

`GET /v1/domains/checker/pages`

## Request

- Base URL: `https://api.karma.domains`
- URL: `https://api.karma.domains/v1/domains/checker/pages`
- Auth: HTTP bearer

Count unique page URLs from the site sitemap for a domain. Costs 1 credit from spendable balance for Pro (8 for agent accounts); cache hits free.

## Query parameters

- `domain` string, required: Domain name (percent-encode non-ASCII)

## Response `200`

Successful Response

- WebsitePageCounterResponseSchema: Website Page Counter response schema
  - `domain` string, required: Normalized domain
  - `root_sitemap_url` string, nullable: Root sitemap URL that was scanned
  - `total_pages` integer: Total unique page URLs found
  - `truncated` boolean: True when the 5000 URL limit was hit
  - `sitemaps` WebsitePageCounterSitemapSchema[]: Flat list of scanned sitemap files
    - `url` string, required: Sitemap file URL
    - `parent_url` string, nullable: Parent sitemap index URL, if nested
    - `kind` 'index' | 'urlset', required: sitemapindex or urlset
    - `page_count` integer: Number of page URLs in this file
    - `error` string, nullable: Fetch/parse error if any
  - `urls` WebsitePageCounterUrlSchema[]: Collected page URLs (max 5000)
    - `loc` string, required: Page URL from <loc>
    - `lastmod` string, nullable: lastmod value if present
    - `sitemap_url` string, required: Sitemap file this URL came from

## Other responses

- `402`: Payment required — x402 agent credits. Read PAYMENT-REQUIRED header (base64 JSON) and retry same URL with PAYMENT-SIGNATURE and optional X-Karma-Plan-Id.
- `422`: Validation Error

## Changes

- **2026-11-05** `46cc2e2767b0`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Operation history](https://skmtc.dev/karma/apis/karma-domains-public-api/changes/v1/domains/checker/pages/get.md)

---

[API](https://skmtc.dev/karma/apis/karma-domains-public-api.md) - [All operations](https://skmtc.dev/karma/apis/karma-domains-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/karma/apis/karma-domains-public-api/revisions/a86fc0bfa15d?raw)
